RasterizerOrderedByteAddressBuffer.LoadAligned
Description
Load an element with type T from the buffer at the specified location with alignment of T.
Signature
T RasterizerOrderedByteAddressBuffer.LoadAligned<T>( int location);
Generic Parameters
T
Parameters
location : int
The input address in bytes which must be a multiple of size of T.
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.
Availability and Requirements
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.
spirv
Available in all stages.