aboutsummaryrefslogtreecommitdiff
path: root/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-ctor.vert
blob: ec0ff82a64802e6f7d5c0ef45177f6a8b229974b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* [config]
 * expect_result: pass
 * glsl_version: 1.20
 * glsles_version: 1.00
 * [end config]
 *
 * From page 20 (page 26 of the PDF) of the GLSL 1.20 spec:
 *
 *     "Arrays can have initializers formed from array constructors:"
 */


vec4 a[2] = vec4[2](vec4(0.0), vec4(2.0));
vec4 b[2] = vec4[ ](vec4(0.5), vec4(2.0));
vec4 c[ ] = vec4[ ](vec4(1.0), vec4(2.0));

void main() { gl_Position = a[0] + b[0] + c[0]; }