max¶
Description¶
Maximum.
Signature¶
/// Requires Capability Set 1: T max<T>( T x, T y) where T : __BuiltinIntegerType; /// Requires Capability Set 1: T max<T>( T x, T y) where T : IComparable; /// Requires Capability Set 1: vector<T, N> max<T, int N>( vector<T, N> x, vector<T, N> y) where T : __BuiltinIntegerType; /// Requires Capability Set 1: matrix<T, N, M> max<T, int N, int M>( matrix<T, N, M> x, matrix<T, N, M> y) where T : __BuiltinIntegerType; /// Requires Capability Set 1: T max<T>( T x, T y) where T : __BuiltinFloatingPointType; /// Requires Capability Set 1: vector<T, N> max<T, int N>( vector<T, N> x, vector<T, N> y) where T : __BuiltinFloatingPointType; /// Requires Capability Set 1: matrix<T, N, M> max<T, int N, int M>( matrix<T, N, M> x, matrix<T, N, M> y) where T : __BuiltinFloatingPointType; /// Requires Capability Set 2: CoopVec<T, N> max<T, int N>( CoopVec<T, N> x, CoopVec<T, N> y) where T : __BuiltinFloatingPointType; /// Requires Capability Set 3: CoopVec<T, N> max<T, int N>( CoopVec<T, N> x, CoopVec<T, N> y) where T : __BuiltinIntegerType;
Generic Parameters¶
T: __BuiltinIntegerType¶
T: IComparable¶
N : int¶
M : int¶
T: __BuiltinFloatingPointType¶
Parameters¶
x : T¶
The first value.
y : T¶
The second value.
x : vector<T, N>¶
The first value.
y : vector<T, N>¶
The second value.
x : matrix<T, N, M>¶
The first value.
y : matrix<T, N, M>¶
The second value.
x : CoopVec<T, N>¶
The first value.
y : CoopVec<T, N>¶
The second value.
Return value¶
Availability and Requirements¶
Capability Set 1¶
Defined for the following targets:
hlsl¶
Available in all stages.
glsl¶
Available in all stages.
cpp¶
Available in all stages.
cuda¶
Available in all stages.
metal¶
Available in all stages.
wgsl¶
Available in all stages.
spirv¶
Available in all stages.
llvm¶
Available in all stages.
Capability Set 2¶
Defined for the following targets:
hlsl¶
Available in all stages.
glsl¶
Available in all stages.
cpp¶
Available in all stages.
cuda¶
Available in all stages.
Requires capability: optix_coopvec.
spirv¶
Available in all stages.
Requires capability: spvCooperativeVectorNV.
Capability Set 3¶
Defined for the following targets:
hlsl¶
Available in all stages.
glsl¶
Available in all stages.
cpp¶
Available in all stages.
cuda¶
Available in all stages.
spirv¶
Available in all stages.
Requires capability: spvCooperativeVectorNV.