Merge pull request #3031 from rg3igalia/sub-group-size-arb-flat-fix
[platform/upstream/glslang.git] / Test / web.array.frag
1 #version 310 es
2
3 precision highp float;
4
5 float g4[4];
6 float g5[5];
7
8 layout(location = 0) out vec2 colorOut;
9
10 float[4] foo(float a[5])
11 {
12     return float[](a[0], a[1], a[2], a[3]);
13 }
14
15 void main()
16 {
17     g4 = foo(g5);
18
19     if (float[4](1.0, 2.0, 3.0, 4.0) == g4)
20         ;
21
22     float u[5];
23     foo(u);
24
25     colorOut = vec2(g4.length(), g5.length());
26 }