WaveGetLaneIndex function

Returns the index of the current lane within the current wave.


uint WaveGetLaneIndex(void);


This function has no parameters.

Return value

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


See also

Overview of Shader Model 6

Shader Model 6