[llvm] [DirectX] Add static sampler support to root signature (PR #143422)

via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 20 12:21:55 PDT 2025


================
@@ -456,6 +664,48 @@ static bool validate(LLVMContext *Ctx, const mcdxbc::RootSignatureDesc &RSD) {
     }
   }
 
+  for (const dxbc::RTS0::v1::StaticSampler &Sampler : RSD.StaticSamplers) {
+    if (!verifySamplerFilter(Sampler.Filter))
+      return reportValueError(Ctx, "Filter", Sampler.Filter);
+
+    if (!verifyAddress(Sampler.AddressU))
----------------
joaosaffran wrote:

I've created a follow-up PR with this: https://github.com/llvm/llvm-project/pull/144465

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


More information about the llvm-commits mailing list