RWByteAddressBuffer.InterlockedAdd

Description

Perform an atomic add operation at the specified byte location of the byte address buffer.

Signature

void RWByteAddressBuffer.InterlockedAdd(
    uint dest,
    uint value,
    out uint original_value);

void RWByteAddressBuffer.InterlockedAdd(
    uint dest,
    uint value);

Parameters

dest : uint

The byte address at which to perform the atomic add operation.

value : uint

The operand of the atomic operation.

original_value : uint

The original value at dest before the add operation.

Availability and Requirements

Defined for the following targets:

hlsl

Available in all stages.

glsl

Available in all stages.

cuda

Available in all stages.

metal

Available in all stages.

spirv

Available in all stages.