--- layout: stdlib-reference --- # coopVecLoad ## Description Load values from a byte-addressable buffer into a cooperative vector. ## Signature
/// Requires Capability Set 1: CoopVec<T, N> coopVecLoad<int N, T>( ByteAddressBuffer buffer, int byteOffset16ByteAligned) where T : __BuiltinArithmeticType; /// Requires Capability Set 1: CoopVec<T, N> coopVecLoad<int N, T>( RWByteAddressBuffer buffer, int byteOffset16ByteAligned) where T : __BuiltinArithmeticType; /// Requires Capability Set 1: CoopVec<T, N> coopVecLoad<int N, T>( StructuredBuffer<T, DefaultDataLayout> buffer, int byteOffset16ByteAligned) where T : __BuiltinArithmeticType; /// Requires Capability Set 1: CoopVec<T, N> coopVecLoad<int N, T>( RWStructuredBuffer<T, DefaultDataLayout> buffer, int byteOffset16ByteAligned) where T : __BuiltinArithmeticType; /// Requires Capability Set 2: CoopVec<T, N> coopVecLoad<int N, T>( Ptr<T> buffer, int byteOffset16ByteAligned) where T : __BuiltinArithmeticType;## Generic Parameters #### N : int #### T: [\_\_BuiltinArithmeticType](../interfaces/0_builtinarithmetictype-029j/index.html) ## Parameters #### buffer : [ByteAddressBuffer](../types/byteaddressbuffer-04b/index.html) The source buffer to load data from. #### byteOffset16ByteAligned : int = 0 The byte offset from the start of the buffer. Must be 16-byte aligned. #### buffer : [RWByteAddressBuffer](../types/rwbyteaddressbuffer-0126d/index.html) The source buffer to load data from. #### buffer : [StructuredBuffer](../types/structuredbuffer-0a/index.html)\<[T](../types/structuredbuffer-0a/index.html#typeparam-T), [DefaultDataLayout](../types/defaultdatalayout-07b/index.html)\> The source buffer to load data from. #### buffer : [RWStructuredBuffer](../types/rwstructuredbuffer-012c/index.html)\<[T](../types/rwstructuredbuffer-012c/index.html#typeparam-T), [DefaultDataLayout](../types/defaultdatalayout-07b/index.html)\> The source buffer to load data from. #### buffer : [Ptr](../types/ptr-0/index.html)\<[T](../types/ptr-0/index.html#typeparam-T)\> The source buffer to load data from. ## Return value A new cooperative vector containing the loaded values. ## Availability and Requirements ### Capability Set 1 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`. ### Capability Set 2 Defined for the following targets: #### spirv Available in all stages. Requires capability: `spvCooperativeVectorNV`.