Contents

stepFunction

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

Declaration

var stepFunction: MTLVertexStepFunction

Discussion

Set to .perInstance to supply per-instance data (for example, per-instance color) from a vertex buffer. Defaults to .perVertex.

See Also

Configuring vertex stepping