[llvm-branch-commits] [llvm] [DirectX] Add static sampler support to root signature and fix descriptor range flags (PR #143422)

Finn Plummer via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Thu Jun 12 09:00:15 PDT 2025


================
@@ -399,6 +486,127 @@ static bool verifyDescriptorRangeFlag(uint32_t Version, uint32_t Type,
   return false;
 }
 
+static bool verifySamplerFilter(uint32_t Filter) {
+  switch (Filter) {
+  case llvm::to_underlying(dxbc::StaticSamplerFilter::MIN_MAG_MIP_POINT):
----------------
inbelic wrote:

We might be able to use a similar `BitEnumMask` technique here?

Or just a `<=` comparison?

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


More information about the llvm-branch-commits mailing list