RasterizerOrderedByteAddressBuffer.Load

Description

Load a 32-bit unsigned integer from the buffer at the specified location.

Signature

/// Requires Capability Set 1:
uint RasterizerOrderedByteAddressBuffer.Load(int location);

/// Requires Capability Set 2:
uint RasterizerOrderedByteAddressBuffer.Load(
    int location,
    out uint status);

/// Requires Capability Set 1:
T RasterizerOrderedByteAddressBuffer.Load<T>(
    uint location);

Generic Parameters

T

Parameters

location : int

The input address in bytes, which must be a multiple of 4.

status : uint

location : uint

The input address in bytes, which must be a multiple of 4.

Return value

The 32-bit unsigned integer loaded from the buffer.

Availability and Requirements

Capability Set 1

Defined for the following targets:

hlsl

Available in all stages.

glsl

Available in all stages.

cpp

Available in all stages.

cuda

Available in all stages.

metal

Available in all stages.

wgsl

Available in all stages.

spirv

Available in all stages.

llvm

Available in all stages.

Capability Set 2

Defined for the following targets:

hlsl

Available in all stages.