--- layout: stdlib-reference --- # coopVecReduceSumAccumulate ## Description Atomically accumulates the elements a cooperative vector into a buffer at the specified offset. ## Signature
/// Requires Capability Set 1: void coopVecReduceSumAccumulate<T, int N>( CoopVec<T, N> v, RWByteAddressBuffer buffer, int offset) where T : __BuiltinArithmeticType; /// Requires Capability Set 2: void coopVecReduceSumAccumulate<T, int N, IgnoredBufferElementType>( CoopVec<T, N> v, RWStructuredBuffer<IgnoredBufferElementType, DefaultDataLayout> buffer, int offset) where T : __BuiltinArithmeticType; /// Requires Capability Set 2: void coopVecReduceSumAccumulate<T, int N, U, int IgnoredBufferSize>( CoopVec<T, N> v, U[IgnoredBufferSize] buffer, int offset) where T : __BuiltinArithmeticType; /// Requires Capability Set 2: void coopVecReduceSumAccumulate<T, int N>( CoopVec<T, N> v, Ptr<void> buffer) where T : __BuiltinArithmeticType;## Generic Parameters #### T: [\_\_BuiltinArithmeticType](../interfaces/0_builtinarithmetictype-029j/index.html) #### N : int #### IgnoredBufferElementType #### U #### IgnoredBufferSize : int ## Parameters #### v : [CoopVec](../types/coopvec-04/index.html)\<[T](../types/coopvec-04/index.html#typeparam-T), [N](../types/coopvec-04/index.html#decl-N)\> The cooperative vector to sum. #### buffer : [RWByteAddressBuffer](../types/rwbyteaddressbuffer-0126d/index.html) The buffer to accumulate the sum into. #### offset : int Byte offset into the buffer. #### buffer : [RWStructuredBuffer](../types/rwstructuredbuffer-012c/index.html)\