Contents

SCNBufferStream

An object that manages a Metal buffer used by a custom shader program.

Declaration

protocol SCNBufferStream : NSObjectProtocol

Overview

Your app does not define classes that implement this protocol. Instead, you use the SCNProgram method handleBinding(ofBufferNamed:frequency:handler:) to register a block to be called by SceneKit. In that block, SceneKit provides a buffer stream object that you can use to write data to the buffer.

Topics

Writing Data to a Buffer

See Also

Renderer Customization