1 // RUN: %clang_cc1 -triple dxil-pc-shadermodel6.0-library -x hlsl -o - %s -verify
4 [shader("compute")][numthreads(32,1,1)]
5 void compute(int GI : SV_GroupIndex) {}
7 // expected-error@+2 {{attribute 'SV_GroupIndex' is unsupported in 'pixel' shaders}}
9 void pixel(int GI : SV_GroupIndex) {}
11 // expected-error@+2 {{attribute 'SV_GroupIndex' is unsupported in 'vertex' shaders}}
13 void vertex(int GI : SV_GroupIndex) {}
15 // expected-error@+2 {{attribute 'SV_GroupIndex' is unsupported in 'geometry' shaders}}
17 void geometry(int GI : SV_GroupIndex) {}
19 // expected-error@+2 {{attribute 'SV_GroupIndex' is unsupported in 'domain' shaders}}
21 void domain(int GI : SV_GroupIndex) {}
23 // expected-error@+2 {{attribute 'SV_GroupIndex' is unsupported in 'amplification' shaders}}
24 [shader("amplification")][numthreads(32,1,1)]
25 void amplification(int GI : SV_GroupIndex) {}
27 // expected-error@+2 {{attribute 'SV_GroupIndex' is unsupported in 'mesh' shaders}}
28 [shader("mesh")][numthreads(32,1,1)]
29 void mesh(int GI : SV_GroupIndex) {}