CoopVec<T, int N>.replicate
Description
Creates a new cooperative vector with all elements initialized to the specified scalar value.
Signature
static CoopVec<T, N> CoopVec<T, int N>.replicate(T t) where T : __BuiltinArithmeticType;
Parameters
t : T
The scalar value to replicate across all elements.
Return value
A new cooperative vector where each element equals the input value.
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.
spirv
Available in all stages.
Requires capability: spvCooperativeVectorNV
.