WaveIsFirstLane function
Returns true only for the active lane in the current wave with the smallest index.
Syntax
bool WaveIsFirstLane(void);
Parameters
This function has no parameters.
Return value
True only for the active lane in the current wave with the smallest index.
Remarks
This function can be used to identify operations that are to be executed only once per wave.
This function is supported from shader model 6.0 in all shader stages.
Examples
if ( WaveIsFirstLane() )
{
. . . // once per-wave code
}
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