A block SceneKit calls at render time for working with buffers in a Metal shader, used by the
- iOS 9.0+
- macOS 10.11+
- tvOS 9.0+
- watchOS 3.0+
The block takes the following parameters:
An object that provides write access to the buffer. Use the
writemethod on this object to write data for use by the shader.
The node to be rendered using the shader program.
The material or geometry to be rendered using the shader program.
The view (or other SceneKit renderer) responsible for rendering.