[clang] [llvm] [HLSL] Update Frontend to support version 1.2 of root signature (PR #160616)
Justin Bogner via cfe-commits
cfe-commits at lists.llvm.org
Wed Oct 1 12:06:32 PDT 2025
================
@@ -131,3 +139,23 @@ void same_rs_string_main() {}
// CHECK: -RootSignatureAttr 0x{{.*}} {{.*}} [[DIFF_RS_DECL]]
[RootSignature(SampleDifferentRS)]
void different_rs_string_main() {}
+
+#define SampleStaticSamplerRS \
+ "StaticSampler(s0, flags = NON_NORMALIZED_COORDINATES)"
+
+// Ensure that static samplers flags are correctly parsed in different versions
+
+// CHECK: -HLSLRootSignatureDecl 0x{{.*}} {{.*}} implicit [[DIFF_RS_DECL:__hlsl_rootsig_decl_\d*]]
+// CHECK-V1_0: version: 1.0,
+// CHECK-V1_1: version: 1.1,
----------------
bogner wrote:
Are we missing a `CHECK-V1_2` here?
https://github.com/llvm/llvm-project/pull/160616
More information about the cfe-commits
mailing list