WaveActiveProduct function

Multiplies the values of the expression together across all active lanes in the current wave and replicates it back to all active lanes.

Syntax

<type> WaveActiveProduct(
   <type> expr
);

Parameters

expr

The expression to evaluate.

Return value

The product value.

Remarks

The order of operations is undefined.

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

 

See also

Overview of Shader Model 6

Shader Model 6