[llvm-branch-commits] [clang] [llvm] [DirectX] Updating Root Signature Metadata to contain Static Sampler flags (PR #160210)
via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Tue Sep 23 22:56:27 PDT 2025
================
@@ -212,6 +212,7 @@ MDNode *MetadataBuilder::BuildStaticSampler(const StaticSampler &Sampler) {
ConstantAsMetadata::get(Builder.getInt32(Sampler.Space)),
ConstantAsMetadata::get(
Builder.getInt32(to_underlying(Sampler.Visibility))),
+ ConstantAsMetadata::get(Builder.getInt32(0)),
----------------
joaosaffran wrote:
Yeah, this is just a temporary fix, I've a follow up PR focused on the frontend changes. I need to add this here, otherwise metadata generation will Fail. Maybe instead of hard coding I can add the flags to StaticSamplers and set them to be None, as this is the default anyway
https://github.com/llvm/llvm-project/pull/160210
More information about the llvm-branch-commits
mailing list