[clang] [llvm] [HLSL][RootSignature] Implement validation of resource ranges for `RootDescriptors` (PR #140962)
Justin Bogner via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 19 16:03:43 PDT 2025
================
@@ -71,13 +71,17 @@ class MetadataBuilder {
SmallVector<Metadata *> GeneratedMetadata;
};
-// RangeInfo holds the information to correctly construct a ResourceRange
-// and retains this information to be used for displaying a better diagnostic
struct RangeInfo {
- const static uint32_t Unbounded = ~0u;
+ const static uint32_t Unbounded = static_cast<uint32_t>(-1);
+ // Interval information
uint32_t LowerBound;
uint32_t UpperBound;
+
+ // Information retained for diagnostics
+ llvm::dxil::ResourceClass Class;
+ uint32_t Space;
+ ShaderVisibility Vis;
----------------
bogner wrote:
Probably better to call it `Visibility`.
https://github.com/llvm/llvm-project/pull/140962
More information about the llvm-commits
mailing list