WaveReadLaneFirst function

Returns the value of the expression for the active lane of the current wave with the smallest index.

Syntax

<type> WaveReadLaneFirst(
   <type> expr
);

Parameters

expr

The expression to evaluate.

Return value

The resulting value is uniform across the wave.

Remarks

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

 

See also

Overview of Shader Model 6

Shader Model 6