| 1 |
// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.3-library -x hlsl -emit-llvm -finclude-default-header -disable-llvm-passes -o - %s -verify -verify-ignore-unexpected=note,error |
| 2 |
// RUN: %clang_cc1 -triple spirv-linux-vulkan-library -x hlsl -emit-llvm -finclude-default-header -disable-llvm-passes -o - %s -verify -verify-ignore-unexpected=note,error |
| 3 |
|
| 4 |
[shader("compute")] |
| 5 |
[numthreads(8,8,1)] |
| 6 |
void foo(uint Idx : SV_GroupID1) { |
| 7 |
// expected-error@-1 {{semantic 'SV_GroupID' does not allow indexing}} |
| 8 |
} |
| 9 |
|
| 10 |
[shader("compute")] |
| 11 |
[numthreads(8,8,1)] |
| 12 |
void bar(uint Idx : SV_GROUPID1) { |
| 13 |
// expected-error@-1 {{semantic 'SV_GROUPID' does not allow indexing}} |
| 14 |
} |