Merge pull request #2892 from greg-lunarg/mb
[platform/upstream/glslang.git] / Test / 300layout.frag
1 #version 300 es
2 precision mediump float;
3 in vec4 pos;
4 layout (location = 2) in vec4 color;  // ERROR
5
6 layout(location = 1) out vec4 c;
7 layout(location = 3) out vec4 p;
8 layout(location = 4) out vec4 q[2];
9
10 void main()
11 {
12     c = color;
13     p = pos;
14     q[1] = pos;
15 }
16
17 layout(location = 40) out float ca[4];  // ERROR, overlap, ERROR too big
18 layout(location = 41) out float cb[2];  // ERROR, overlap, ERROR too big
19 layout(location = 39) out float cc[6];  // ERROR, overlap, ERROR too big