SCNBufferBindingBlock
A block SceneKit calls at render time for working with buffers in a Metal shader, used by the Handlebinding(ofbuffernamed:frequency:handler:) method.
Declaration
typealias SCNBufferBindingBlock = (any SCNBufferStream, SCNNode, any SCNShadable, SCNRenderer) -> VoidDiscussion
The block takes the following parameters:
- buffer
An object that provides write access to the buffer. Use the writeBytes(_:count:) method on this object to write data for use by the shader.
- node
The node to be rendered using the shader program.
- shadable
The material or geometry to be rendered using the shader program.
- renderer
The view (or other SceneKit renderer) responsible for rendering.