Contents

MTLStepFunction.threadPositionInGridXIndexed

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

Declaration

case threadPositionInGridXIndexed

Discussion

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

See Also

Step options