CoopVec<T, int N>.storeAny

Description

Store the value to a groupshared array of any type. This method is only available when targeting SPIR-V.

Signature

void CoopVec<T, int N>.storeAny<U, int M>(
    U[M] data,
    int byteOffset16ByteAligned)
    where T : __BuiltinArithmeticType;

void CoopVec<T, int N>.storeAny<U, int M, int L>(
    vector<U, L>[M] data,
    int byteOffset16ByteAligned)
    where T : __BuiltinArithmeticType;

Generic Parameters

U

M : int

L : int

Parameters

data : U [ M ]

The destination array where the data will be stored. The array element type can be different from the CoopVec element type.

byteOffset16ByteAligned : int = 0

The byte offset from the start of data. Must be a multiple of 16 bytes.

data : vector<U, L> [ M ]

The destination array where the data will be stored. The array element type can be different from the CoopVec element type.

Availability and Requirements

Defined for the following targets:

spirv

Available in all stages.

Requires capability: spvCooperativeVectorNV.