RWByteAddressBuffer.Load2
Description
Load two 32-bit unsigned integers from the buffer at the specified location with additional alignment.
Signature
/// Requires Capability Set 1: vector<uint, 2> RWByteAddressBuffer.Load2(uint location); /// Requires Capability Set 2: vector<uint, 2> RWByteAddressBuffer.Load2( uint location, out uint status);
Parameters
location : uint
The input address in bytes.
status : uint
[out] The status of the operation.
Return value
Two 32-bit unsigned integers loaded from the buffer.
Remarks
This function only supports when targeting HLSL. You can’t access the output parameter status directly; instead, pass the status to the CheckAccessFullyMapped intrinsic function. CheckAccessFullyMapped returns TRUE if all values from the corresponding Sample, Gather, or Load operation accessed mapped tiles in a tiled resource. If any values were taken from an unmapped tile, CheckAccessFullyMapped returns FALSE. When targeting non-HLSL, the status is always 0.
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.
spirv
Available in all stages.
Capability Set 2
Defined for the following targets:
hlsl
Available in all stages.