Debian Codegraph @

clang/test/Driver/dxc_hlsl-rootsig-ver.hlsl

raw
1 // RUN: %clang_dxc -T cs_6_0 -fcgl %s | FileCheck %s --check-prefix=CHECK-V1_1
2
3 // RUN: %clang_dxc -T cs_6_0 -fcgl -force-rootsig-ver rootsig_1_0 %s | FileCheck %s --check-prefix=CHECK-V1_0
4 // RUN: %clang_dxc -T cs_6_0 -fcgl -force-rootsig-ver rootsig_1_1 %s | FileCheck %s --check-prefix=CHECK-V1_1
5
6 // Test to demonstrate that we can specify the root-signature versions
7
8 // CHECK: !dx.rootsignatures = !{![[#EMPTY_ENTRY:]]}
9 // CHECK: ![[#EMPTY_ENTRY]] = !{ptr @EmptyEntry, ![[#EMPTY:]],
10 // CHECK-V1_0: i32 1}
11 // CHECK-V1_1: i32 2}
12 // CHECK: ![[#EMPTY]] = !{}
13
14 [shader("compute"), RootSignature("")]
15 [numthreads(1,1,1)]
16 void EmptyEntry() {}