| 1 |
// Create a dummy dxv to run |
| 2 |
// RUN: mkdir -p %t.dir |
| 3 |
// RUN: echo "dxv" > %t.dir/dxv && chmod 754 %t.dir/dxv |
| 4 |
|
| 5 |
// RUN: %clang_dxc -Qstrip-rootsignature --dxv-path=%t.dir -T cs_6_0 /Fo %t.dxo -### %s 2>&1 | FileCheck %s |
| 6 |
|
| 7 |
// Test to demonstrate that we specify to the root signature with the |
| 8 |
// -Qstrip-rootsignature option and that it occurs before DXV |
| 9 |
|
| 10 |
// CHECK: "{{.*}}llvm-objcopy{{(.exe)?}}" "{{.*}}.obj" "{{.*}}.obj" "--remove-section=RTS0" |
| 11 |
// CHECK: "{{.*}}dxv{{(.exe)?}}" "{{.*}}.obj" "-o" "{{.*}}.dxo" |
| 12 |
|
| 13 |
[shader("compute"), RootSignature("")] |
| 14 |
[numthreads(1,1,1)] |
| 15 |
void EmptyEntry() {} |