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: scripting
Project: Inno.Rendering.Shaders
Scope: Editor
Declaration
Section titled “Declaration”public InnoEditor.Rendering.Shaders.ShaderIrValue InnoEditor.Rendering.Shaders.ShaderIrBuilder.AtomicAddStorage(InnoEditor.Rendering.Shaders.ShaderIrValue resource, InnoEditor.Rendering.Shaders.ShaderIrValue index, InnoEditor.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.