Enumeration

MTLStepFunction

The frequency with which a function fetches attribute data.

Declaration

enum MTLStepFunction : UInt

Topics

Step options

case constant

The function fetches attribute data once.

case perInstance

The function fetches data based on the instance index.

case perPatch

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

case perPatchControlPoint

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

case perVertex

The vertex function fetches data for every vertex.

case threadPositionInGridX

The compute function fetches data based on the thread's x coordinate.

case threadPositionInGridY

The compute function fetches data based on the thread's y coordinate.

case threadPositionInGridXIndexed

The compute function fetches data by using the thread's x coordinate to look up a value in the index buffer.

case threadPositionInGridYIndexed

The compute function fetches data by using the thread's y coordinate to look up a value in the index buffer.

See Also

Describing Fetch Behavior

var stride: Int

The distance, in bytes, between entries in the buffer for the attribute.

var stepFunction: MTLStepFunction

Determines which aspect of command execution triggers data fetches.

var stepRate: Int

The rate at which data is fetched by the step function.

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