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
);
-
expr
-
The expression to evaluate.
The maximum value.
The order of operations is undefined.
This function is supported from shader model 6.0 in all shader stages.
syntax
float3 maxPos = WaveActiveMax( myPoint.position );
BoundingBox.max = max( maxPos, BoundingBox.max );