2 * This test differs from aggregate-initializer-struct.shader_test
3 * in that it includes one dynamic variable, to further test the
4 * compiler. Otherwise, the initializer is constant folded away.
5 * The structs should still be identical.
10 GL_ARB_shading_language_420pack
13 #extension GL_ARB_shading_language_420pack: enable
30 S(vec4[2](vec4(vertex.x, 2.0, 3.0, 4.0), vec4(5.0, 6.0, 7.0, 8.0))),
31 S(vec4[2](vec4(vertex.x, 2.0, 3.0, 4.0), vec4(5.0, 6.0, 7.0, 8.0)))
33 S(vec4[2](vec4(vertex.x, 2.0, 3.0, 4.0), vec4(5.0, 6.0, 7.0, 8.0))), // b
40 {vertex.x, 2.0, 3.0, 4.0}, // a[0].v[0]
41 {5.0, 6.0, 7.0, 8.0} // a[0].v[1]
46 {vertex.x, 2.0, 3.0, 4.0}, // a[1].v[0]
47 {5.0, 6.0, 7.0, 8.0} // a[1].v[1]
53 {vertex.x, 2.0, 3.0, 4.0}, // b.v[0]
54 {5.0, 6.0, 7.0, 8.0} // b.v[1]
60 color = vec4(0.0, 1.0, 0.0, 1.0);
62 if (s1.a[0].v[0] != s2.a[0].v[0] ||
63 s1.a[0].v[1] != s2.a[0].v[1] ||
64 s1.a[1].v[0] != s2.a[1].v[0] ||
65 s1.a[1].v[1] != s2.a[1].v[1] ||
66 s1.b.v[0] != s2.b.v[0] ||
67 s1.b.v[1] != s2.b.v[1] ||
69 color = vec4(1.0, 0.0, 0.0, 1.0);
84 probe all rgba 0.0 1.0 0.0 1.0