[llvm-branch-commits] [llvm] [HLSL] Adding support for root descriptors in root signature metadata representation (PR #139781)
Finn Plummer via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Tue May 20 11:02:43 PDT 2025
================
@@ -155,6 +217,16 @@ static bool verifyVersion(uint32_t Version) {
return (Version == 1 || Version == 2);
}
+static bool verifyRegisterValue(uint32_t RegisterValue) {
+ return !(RegisterValue == 0xFFFFFFFF);
+}
+
+static bool verifyRegisterSpace(uint32_t RegisterSpace) {
+ return !(RegisterSpace >= 0xFFFFFFF0 && RegisterSpace <= 0xFFFFFFFF);
+}
+
+static bool verifyDescriptorFlag(uint32_t Flags) { return (Flags & ~0xE) == 0; }
----------------
inbelic wrote:
self-note: this is only called on v2, so it implicitly handles the different verification based on version.
https://github.com/llvm/llvm-project/pull/139781
More information about the llvm-branch-commits
mailing list