Registers a block for SceneKit to call at render time for binding a Metal buffer to the shader program.
- iOS 9.0+
- macOS 10.11+
- tvOS 9.0+
The name identifying the buffer in Metal shader source code.
An option specifying whether SceneKit calls the block only once per rendered frame or more frequently (for example, once for each object to be rendered).
A block to be run when SceneKit prepares for rendering with the Metal shader.
Use this method to associate a block with a Metal shader program to handle setup of a buffer used in that shader. SceneKit calls your block before rendering any objects whose
program property is set to this
SCNProgram object. In the block, use the
write method to provide data for the buffer.