Enumeration

SCNBufferFrequency

Options for how often SceneKit should execute the binding handler you provide with the handleBindingOfBufferNamed:frequency:usingBlock: method.

Declaration

typedef enum SCNBufferFrequency : NSInteger {
    ...
} SCNBufferFrequency;

Topics

Constants

SCNBufferFrequencyPerFrame

Execute the binding handler once for each frame to be rendered using the shader.

SCNBufferFrequencyPerNode

Execute the binding handler once for each frame, for each node to be rendered using the shader.

SCNBufferFrequencyPerShadable

Execute the binding handler once for each frame, for each node, for each material or geometry to be rendered using the shader.

See Also

Providing Input for Metal Shaders

- handleBindingOfBufferNamed:frequency:usingBlock:

Registers a block for SceneKit to call at render time for binding a Metal buffer to the shader program.

SCNBufferBindingBlock

A block SceneKit calls at render time for working with buffers in a Metal shader, used by the handleBindingOfBufferNamed:frequency:usingBlock: method.