1 /* The ARB_shading_language_420pack suggests:
3 * Verify that the following three matrices are identical:
5 * mat2x2 a = mat2( vec2( 1.0, 0.0 ), vec2( 0.0, 1.0 ) );
6 * mat2x2 b = { vec2( 1.0, 0.0 ), vec2( 0.0, 1.0 ) };
7 * mat2x2 c = { { 1.0, 0.0 }, { 0.0, 1.0 } };
12 GL_ARB_shading_language_420pack
15 #extension GL_ARB_shading_language_420pack: enable
22 mat2x2 a = mat2( vec2( 1.0, 0.0 ), vec2( 0.0, 1.0 ) );
23 mat2x2 b = { vec2( 1.0, 0.0 ), vec2( 0.0, 1.0 ) };
24 mat2x2 c = { { 1.0, 0.0 }, { 0.0, 1.0 } };
26 color = vec4(0.0, 1.0, 0.0, 1.0);
28 if (a.length() != b.length() || a.length() != c.length()) {
29 color = vec4(0.0, 0.0, 1.0, 1.0);
31 for (int i = 0; i < a.length(); i++) {
32 if (a[i] != b[i] || a[i] != c[i]) {
33 color = vec4(1.0, 0.0, 0.0, 1.0);
50 probe all rgba 0.0 1.0 0.0 1.0