Edit

WaveGetLaneIndex function

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

Syntax

uint WaveGetLaneIndex(void);

Parameters

This function has no parameters.

Return value

The index of the current lane. The result is greater than or equal to zero and less than the value returned by WaveGetLaneCount.

Remarks

This function is supported from shader model 6.0 in all shader stages.

 

See also

Overview of Shader Model 6

Shader Model 6