CoopVec<T, int N>.init
Description
Signature
/// Requires Capability Set 1: CoopVec<T, int N>.init() where T : __BuiltinArithmeticType; /// Requires Capability Set 1: CoopVec<T, int N>.init(T t) where T : __BuiltinArithmeticType; /// Requires Capability Set 2: CoopVec<T, int N>.init<U>(CoopVec<U, N> other) where U : __BuiltinArithmeticType where T : __BuiltinArithmeticType; /// Requires Capability Set 3: CoopVec<T, int N>.init<each U>(U args) where U : __BuiltinArithmeticType where T : __BuiltinArithmeticType; /// Requires Capability Set 1: CoopVec<T, int N>.init(int i) where T : __BuiltinArithmeticType; CoopVec<T, int N>.init(CoopVec<T, N> x) where T : __BuiltinArithmeticType;
Generic Parameters
U: __BuiltinArithmeticType
Parameters
t : T
other : CoopVec<U, N>
args : U
i : int
x : CoopVec<T, N>
Availability and Requirements
Capability Set 1
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.
spirv
Available in all stages.
Requires capability: spvCooperativeVectorNV
.
Capability Set 2
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
.
Capability Set 3
Defined for the following targets:
hlsl
Available in all stages.
cpp
Available in all stages.
cuda
Available in all stages.
spirv
Available in all stages.
Requires capability: spvCooperativeVectorNV
.