[clang] [llvm] [DirectX] Updating Root Signature Metadata to contain Static Sampler flags (PR #160210)

via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 1 13:27:47 PDT 2025


================
@@ -501,6 +502,17 @@ Error MetadataParser::parseStaticSampler(mcdxbc::RootSignatureDesc &RSD,
     return Error(std::move(E));
   Sampler.ShaderVisibility = *Visibility;
 
+  if (RSD.Version < 3) {
+    RSD.StaticSamplers.push_back(Sampler);
+    return Error::success();
+  }
+  assert(RSD.Version >= 3);
----------------
joaosaffran wrote:

As per our offline discussion, I've filed an issue to throw an error when we notice the flags are being set in an unsupported version: https://github.com/llvm/llvm-project/issues/161579

https://github.com/llvm/llvm-project/pull/160210


More information about the cfe-commits mailing list