WaveGetLaneIndex function
Returns the index of the current lane within the current wave.
uint WaveGetLaneIndex(void);
This function has no parameters.
The current lane index. The result will be between 0 and the result returned from WaveGetLaneCount.
This function is supported from shader model 6.0, in the following types of shaders:
Vertex | Hull | Domain | Geometry | Pixel | Compute |
---|---|---|---|---|---|
x | x |