Enumeration

MTLStepFunction

The frequency with which a function fetches attribute data.

Declaration

typedef enum MTLStepFunction : NSUInteger {
    ...
} MTLStepFunction;

Topics

Step options

MTLStepFunctionConstant

The function fetches attribute data once.

MTLStepFunctionPerInstance

The function fetches data based on the instance index.

MTLStepFunctionPerPatch

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

MTLStepFunctionPerPatchControlPoint

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

MTLStepFunctionPerVertex

The vertex function fetches data for every vertex.

MTLStepFunctionThreadPositionInGridX

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

MTLStepFunctionThreadPositionInGridY

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

MTLStepFunctionThreadPositionInGridXIndexed

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

MTLStepFunctionThreadPositionInGridYIndexed

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

stride

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

stepFunction

Determines which aspect of command execution triggers data fetches.

stepRate

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