CoopVec<T, int N>.copyFrom

Description

Copy values from another CoopVec instance into this one. The source CoopVec can have a different element type, in which case appropriate type conversion will be performed.

Signature

void CoopVec<T, int N>.copyFrom<U>(CoopVec<U, N> other)
    where U : __BuiltinArithmeticType
    where T : __BuiltinArithmeticType;

Generic Parameters

U: __BuiltinArithmeticType

Parameters

other : CoopVec<U, N>

The source CoopVec to copy from.

Availability and Requirements

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.