WaveGetLaneCount function
Returns the number of lanes in a wave on this architecture.
Syntax
uint WaveGetLaneCount(void);
Parameters
This function has no parameters.
Return value
The result will be between 4 and 128, and includes all waves: active, inactive, and/or helper lanes. The result returned from this function may vary significantly 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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for