WaveActiveMax function
Returns the maximum value of the expression across all active lanes in the current wave and replicates it back to all active lanes.
Syntax
<type> WaveActiveMax(
<type> expr
);
Parameters
-
expr
-
The expression to evaluate.
Return value
The maximum value.
Remarks
The order of operations is undefined.
This function is supported from shader model 6.0 in all shader stages.
Examples
float3 maxPos = WaveActiveMax( myPoint.position );
BoundingBox.max = max( maxPos, BoundingBox.max );
See also