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>( uint location, uint alignment); T RasterizerOrderedByteAddressBuffer.LoadAligned<T>( uint location);
Generic Parameters¶
T¶
Parameters¶
location : uint¶
The input address in bytes which must be a multiple 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.
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.
wgsl¶
Available in all stages.
spirv¶
Available in all stages.
llvm¶
Available in all stages.