Contents

stepFunction

Determines how the vertex shader steps through the data in this layout.

Declaration

var stepFunction: MTLVertexStepFunction { get set }

Discussion

Set to .perInstance to supply per-instance data (for example, per-instance color or transform) from a vertex buffer rather than a separate instancing buffer. Defaults to .perVertex.

Corresponds to MTLVertexBufferLayoutDescriptor.stepFunction.

See Also

Configuring vertex stepping