Skip to content

Commit 3e795b2

Browse files
committed
add test-case for specifying the version at it being correclty generated
1 parent 4ef6b3a commit 3e795b2

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)