We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ef6b3a commit 3e795b2Copy full SHA for 3e795b2
clang/test/Driver/dxc_hlsl-rootsig-ver.hlsl
@@ -0,0 +1,15 @@
1
+// RUN: %clang_dxc -T cs_6_0 -fcgl %s | FileCheck %s --check-prefix=CHECK-V1_1
2
+// RUN: %clang_dxc -T cs_6_0 -fcgl -hlsl-rootsig-ver rootsig_1_0 %s | FileCheck %s --check-prefix=CHECK-V1_0
3
+// RUN: %clang_dxc -T cs_6_0 -fcgl -hlsl-rootsig-ver rootsig_1_1 %s | FileCheck %s --check-prefix=CHECK-V1_1
4
+
5
+// Test to demonstrate that we can specify the root-signature versions
6
7
+// CHECK: !dx.rootsignatures = !{![[#EMPTY_ENTRY:]]}
8
+// CHECK: ![[#EMPTY_ENTRY]] = !{ptr @EmptyEntry, ![[#EMPTY:]],
9
+// CHECK-V1_0: i32 1}
10
+// CHECK-V1_1: i32 2}
11
+// CHECK: ![[#EMPTY]] = !{}
12
13
+[shader("compute"), RootSignature("")]
14
+[numthreads(1,1,1)]
15
+void EmptyEntry() {}
0 commit comments