MTLVertexStepFunction

The frequency with which the vertex function or post-tessellation vertex function fetches attribute data.

Values

ValueMeaning
Constant0

The vertex function fetches attribute data once and uses that data for every vertex.

PerVertex1

The vertex function fetches and uses new attribute data for every vertex.

PerInstance2

The vertex function regularly fetches new attribute data for a number of instances that is determined by stepRate.

PerPatch3

The post-tessellation vertex function fetches data based on the patch index of the patch.

PerPatchControlPoint4

The post-tessellation vertex function fetches data based on the control-point indices associated with the patch.

Meta