Merge pull request #2892 from greg-lunarg/mb
[platform/upstream/glslang.git] / Test / glspv.vert
1 #version 450\r
2 \r
3 layout(push_constant) uniform Material { int a; } mat;            // ERROR, can't use push_constant\r
4 \r
5 layout(set = 0, binding = 0, std140) uniform Bt1 { int a; } bt1;\r
6 layout(set = 1, binding = 0, std140) uniform Bt2 { int a; } bt2;  // ERROR, set has to be 0\r
7 \r
8 layout(shared) uniform Bt3 { int a; } bt3;                        // ERROR, no shared, no binding\r
9 layout(packed) uniform Bt4 { int a; } bt4;                        // ERROR, no shared, no binding\r
10 \r
11 void main()\r
12 {\r
13     gl_VertexIndex;   // ERROR, not preset\r
14     gl_InstanceIndex; // ERROR, not present\r
15     gl_VertexID;\r
16     gl_InstanceID;\r
17     gl_DepthRangeParameters; // ERROR, not present\r
18 }\r
19 \r
20 uniform sampler s; // ERROR, no sampler\r