WaveActiveAnyTrue function

Returns true if the expression is true in any of the active lanes in the current wave.

Syntax

bool WaveActiveAnyTrue(
   bool expr
);

Parameters

expr

The boolean expression to evaluate.

Return value

True if the expression is true in any lane.

Remarks

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

 

See also

Overview of Shader Model 6

Shader Model 6