WavePrefixMin
Description
WavePrefixMin - Exclusive prefix minimum (equivalent to GLSL subgroupExclusiveMin) Returns the minimum of all values from lanes with a lower index. Lane 0 gets the identity value (type max), lane i gets min(val[0], …, val[i-1]).
Signature
T WavePrefixMin<T>(T expr) where T : __BuiltinArithmeticType; vector<T, N> WavePrefixMin<T, int N>(vector<T, N> expr) where T : __BuiltinArithmeticType; matrix<T, N, M> WavePrefixMin<T, int N, int M>(matrix<T, N, M> expr) where T : __BuiltinArithmeticType;
Generic Parameters
T: __BuiltinArithmeticType
N : int
M : int
Parameters
expr : T
expr : vector<T, N>
expr : matrix<T, N, M>
Availability and Requirements
Defined for the following targets:
glsl
Available in all stages.
cuda
Available in all stages.
spirv
Available in all stages.
Requires capability: spvGroupNonUniformArithmetic.