ByteAddressBuffer.Load2Aligned¶
Description¶
Load two 32-bit unsigned integers from the buffer at the specified location with alignment of stride of uint2, which is 8.
Signature¶
vector<uint, 2> ByteAddressBuffer.Load2Aligned( uint location, uint alignment); vector<uint, 2> ByteAddressBuffer.Load2Aligned(uint location);
Parameters¶
location : uint¶
The input address in bytes, which must be a multiple of alignment of 8. Invalid value of location will cause undefined behavior.
alignment : uint¶
Return value¶
uint2 Two 32-bit unsigned integers loaded from the buffer.
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.
llvm¶
Available in all stages.