1 /* The ARB_shading_language_420pack suggests:
3 * Verify that the following two arrays are identical:
5 * vec4 a[12] = vec4 [] (vec4(1.2), vec4(0.0), vec4(0.0), vec4(0.0),
6 * vec4(0.0), vec4(0.0), vec4(0.0), vec4(2.4),
7 * vec4(0.0), vec4(0.0), vec4(0.0), vec4(0.0));
8 * vec4 b[12] = { vec4(1.2), vec4(0.0), vec4(0.0), vec4(0.0),
9 * vec4(0.0), vec4(0.0), vec4(0.0), vec4(2.4) }; [sic]
11 * Of course, it means to include a final row of four vec4(0.0) in the initializer
17 GL_ARB_shading_language_420pack
20 #extension GL_ARB_shading_language_420pack: enable
27 vec4 a[12] = vec4 [] (vec4(1.2), vec4(0.0), vec4(0.0), vec4(0.0),
28 vec4(0.0), vec4(0.0), vec4(0.0), vec4(2.4),
29 vec4(0.0), vec4(0.0), vec4(0.0), vec4(0.0));
30 vec4 b[12] = { vec4(1.2), vec4(0.0), vec4(0.0), vec4(0.0),
31 vec4(0.0), vec4(0.0), vec4(0.0), vec4(2.4),
32 vec4(0.0), vec4(0.0), vec4(0.0), vec4(0.0) };
34 color = vec4(0.0, 1.0, 0.0, 1.0);
36 if (a.length() != b.length()) {
37 color = vec4(0.0, 0.0, 1.0, 1.0);
39 for (int i = 0; i < a.length(); i++) {
41 color = vec4(1.0, 0.0, 0.0, 1.0);
58 probe all rgba 0.0 1.0 0.0 1.0