Instance Property

stepRate

The interval at which the vertex and its attributes are presented to the vertex function.

Declaration

var stepRate: Int { get set }

Discussion

The default value is 1. The stepRate value, in conjunction with the stepFunction property, determines how often the function fetches new attribute data. The stepRate property is generally used when stepFunction is MTLVertexStepFunction.perInstance. If stepRate is equal to 1, new attribute data is fetched for every instance; if stepRate is equal to 2, new attribute data is fetched for every two instances, and so forth.

See Also

Organizing the Vertex Buffer Layout

var stepFunction: MTLVertexStepFunction

The circumstances under which the vertex and its attributes are presented to the vertex function.

var stride: Int

The distance, in bytes, between the attribute data of two vertices in the buffer.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software