• Slang Standard Library Reference
    • Interfaces
    • Types
      • Buffer types
      • Math types
      • Miscelaneous types
      • Ray-tracing
      • Sampler types
      • Scalar types
      • Stage IO types
      • Texture types
      • Array
      • Atomic
      • AtomicAdd
      • ConstantBuffer
      • CoopMat
      • CoopMatMatrixLayout
      • CoopMatMatrixOperands
      • CoopMatMatrixUse
      • CoopMatScope
      • CoopVec
        • add
        • copyFrom
        • div
        • equals
        • fill
        • getCount
        • init
        • lessThan
        • lessThanOrEquals
        • load
        • loadAny
        • matMulAccum
        • matMulAccumPacked
        • matMulAddAccum
        • matMulAddAccumPacked
        • mod
        • mul
        • neg
        • replicate
        • store
        • storeAny
        • sub
        • subscript
      • CoopVecComponentType
      • CoopVecMatrixLayout
      • DescriptorAccess
      • DescriptorHandle
      • DescriptorKind
      • DiffTensorView
      • DifferentialPair
      • DifferentialPtrPair
      • DispatchNodeInputRecord
      • NodePayloadPtr
      • NullDifferential
      • Optional
      • ParameterBlock
      • Ptr
      • String
      • TensorView
      • TorchTensor
      • Tuple
      • _AttributeTargets
      • int8_t4_packed
      • uint8_t4_packed
    • Attributes
    • Global Declarations

CoopVec<T, N:int>.store

Description

Store all elements of this CoopVec into a buffer at a specified offset.

Signature

void CoopVec<T, N:int>.store(
    RWByteAddressBuffer buffer,
    int byteOffset16ByteAligned)
    where T : __BuiltinArithmeticType;

void CoopVec<T, N:int>.store(
    RWStructuredBuffer<T, DefaultDataLayout> buffer,
    int byteOffset16ByteAligned)
    where T : __BuiltinArithmeticType;

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

Generic Parameters

M : int

Parameters

buffer : RWByteAddressBuffer

The destination buffer to store the values into.

byteOffset16ByteAligned : int = 0

The byte offset from the start of the buffer where the data will be stored. Must be 16-byte aligned.

buffer : RWStructuredBuffer<T, DefaultDataLayout>

The destination buffer to store the values into.

data : T [ M ]

Availability and Requirements

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.