RasterizerOrderedByteAddressBuffer.InterlockedExchange

Description

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

Signature

void RasterizerOrderedByteAddressBuffer.InterlockedExchange(
    uint dest,
    uint value,
    out uint original_value);

void RasterizerOrderedByteAddressBuffer.InterlockedExchange(
    uint dest,
    uint value);

Parameters

dest : uint

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

value : uint

The operand of the atomic operation.

original_value : uint

The original value at dest before the exchange 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.