Contents

MTLStepFunction.threadPositionInGridX

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

Declaration

case threadPositionInGridX

Discussion

This step function uses the x coordinate of the thread position in a grid as the index to fetch [[stage_in]] data. In tessellation compute kernels, you use this step function to identify a control point in a given patch.

See Also

Step options