CoopVec<T, int N>.sub
Description
Performs component-wise subtraction with another cooperative vector.
Signature
CoopVec<T, N> CoopVec<T, int N>.sub(CoopVec<T, N> other) where T : __BuiltinArithmeticType;
Parameters
other : CoopVec<T, N>
The cooperative vector to subtract from this vector.
Return value
A new cooperative vector containing the difference of the two vectors.
Availability and Requirements
Defined for the following targets:
hlsl
Available in all stages.
Requires capability: hlsl_coopvec_poc
.
cpp
Available in all stages.
cuda
Available in all stages.
Requires capability: optix_coopvec
.
spirv
Available in all stages.
Requires capability: spvCooperativeVectorNV
.