Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Returns the number of lanes in a wave on this architecture.
Syntax
uint WaveGetLaneCount(void);
Parameters
This function has no parameters.
Return value
The number of lanes in the current wave. The result is between 4 and 128 and includes active, inactive, and helper lanes. The returned value can vary depending on the driver implementation.
Remarks
This function is supported from shader model 6.0 in all shader stages.
Examples
uint laneCount = WaveGetLaneCount(); // number of lanes in wave
See also