llvm::hlsl::rootsig::computeRangeBound

Compute the inclusive upper bound of a register range.

Synopsis

Declared in <llvm/Frontend/HLSL/RootSignatureValidations.h>

uint64_t
computeRangeBound(
    uint64_t Offset,
    uint32_t Size);

Return Value

Inclusive upper bound, or NumDescriptorsUnbounded when Size is unbounded.

Parameters

NameDescription
OffsetStarting register index of the range.
SizeNumber of descriptors in the range, or NumDescriptorsUnbounded.