Synced
ShaderIrBuilder.AtomicAddStorage
Section titled “ShaderIrBuilder.AtomicAddStorage”
- Atomically adds to a scalar integer buffer element and returns its previous value.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Rendering.Shaders
Declaration
Section titled “Declaration”public Inno.Rendering.Shaders.ShaderIrValue Inno.Rendering.Shaders.ShaderIrBuilder.AtomicAddStorage(Inno.Rendering.Shaders.ShaderIrValue resource, Inno.Rendering.Shaders.ShaderIrValue index, Inno.Rendering.Shaders.ShaderIrValue value)Parameters
Section titled “Parameters”Parameter resource: A read-write int or uint storage buffer.
Parameter index: Unsigned element index.
Parameter value: Addition operand matching the buffer element type.
Returns
Section titled “Returns”The original scalar value observed by the atomic operation.
Exceptions
Section titled “Exceptions”Exception T:System.ArgumentException: The resource is not an appropriate read-write integer buffer.