WaveReadLaneFirst function

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

Syntax

<type> WaveReadFirstLane(
   <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 the following types of shaders:

Vertex Hull Domain Geometry Pixel Compute
x x

 

See also

Overview of Shader Model 6

Shader Model 6