ByteAddressBuffer.LoadAligned

Description

Load an element with type T from the buffer at the specified location with alignment of T.

Signature

T ByteAddressBuffer.LoadAligned<T>(
    uint location,
    uint alignment);

T ByteAddressBuffer.LoadAligned<T>(uint location);

Generic Parameters

T

Parameters

location : uint

The input address in bytes which must be a multiply of size of T.

alignment : uint

Return value

T value with type T loaded from the buffer.

Remarks

Currently, this function only supports when T is scalar, vector or matrix type.