1#version 450
2
3layout(push_constant) uniform Material { int a; } mat;            // ERROR, can't use push_constant
4
5layout(set = 0, binding = 0, std140) uniform Bt1 { int a; } bt1;
6layout(set = 1, binding = 0, std140) uniform Bt2 { int a; } bt2;  // ERROR, set has to be 0
7
8layout(shared) uniform Bt3 { int a; } bt3;                        // ERROR, no shared, no binding
9layout(packed) uniform Bt4 { int a; } bt4;                        // ERROR, no shared, no binding
10
11void main()
12{
13    gl_VertexIndex;   // ERROR, not preset
14    gl_InstanceIndex; // ERROR, not present
15    gl_VertexID;
16    gl_InstanceID;
17    gl_DepthRangeParameters; // ERROR, not present
18}
19
20uniform sampler s; // ERROR, no sampler
21