xref: /aosp_15_r20/external/angle/third_party/glslang/src/Test/300layout.frag (revision 8975f5c5ed3d1c378011245431ada316dfb6f244)
1#version 300 es
2precision mediump float;
3in vec4 pos;
4layout (location = 2) in vec4 color;  // ERROR
5
6layout(location = 1) out vec4 c;
7layout(location = 3) out vec4 p;
8layout(location = 4) out vec4 q[2];
9
10void main()
11{
12    c = color;
13    p = pos;
14    q[1] = pos;
15}
16
17layout(location = 40) out float ca[4];  // ERROR, overlap, ERROR too big
18layout(location = 41) out float cb[2];  // ERROR, overlap, ERROR too big
19layout(location = 39) out float cc[6];  // ERROR, overlap, ERROR too big
20