1 /* The ARB_shading_language_420pack suggests:
3 * Verify that the following two arrays are identical:
5 * vec4 a[] = 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(0.0), vec4(0.0), vec4(0.0), vec4(3.6));
9 * vec4 b[] = { vec4(1.2), vec4(0.0), vec4(0.0), vec4(0.0),
10 * vec4(0.0), vec4(0.0), vec4(0.0), vec4(2.4),
11 * vec4(0.0), vec4(0.0), vec4(0.0), vec4(0.0),
12 * vec4(0.0), vec4(0.0), vec4(0.0), vec4(3.6) };
17 GL_ARB_shading_language_420pack
20 #extension GL_ARB_shading_language_420pack: enable
27 vec4 a[] = 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(0.0), vec4(0.0), vec4(0.0), vec4(3.6));
31 vec4 b[] = { vec4(1.2), vec4(0.0), vec4(0.0), vec4(0.0),
32 vec4(0.0), vec4(0.0), vec4(0.0), vec4(2.4),
33 vec4(0.0), vec4(0.0), vec4(0.0), vec4(0.0),
34 vec4(0.0), vec4(0.0), vec4(0.0), vec4(3.6) };
36 color = vec4(0.0, 1.0, 0.0, 1.0);
38 if (a.length() != b.length()) {
39 color = vec4(0.0, 0.0, 1.0, 1.0);
41 for (int i = 0; i < a.length(); i++) {
43 color = vec4(1.0, 0.0, 0.0, 1.0);
60 probe all rgba 0.0 1.0 0.0 1.0