1 /* The ARB_shading_language_420pack spec says:
3 * "The length method may be applied to matrices. The result is the number
4 * of columns of the matrix. For example,
7 * const int L = v.length();
9 * sets the constant L to 3. The type returned by .length() on a matrix
12 * Verify that mat.length() returns the number of columns and that the type is
18 GL_ARB_shading_language_420pack
20 [vertex shader passthrough]
23 #extension GL_ARB_shading_language_420pack: enable
38 frag_color = vec4(0.0, 1.0, 0.0, 1.0);
40 if (m2x2.length() != 2 ||
49 frag_color = vec4(1.0, 0.0, 0.0, 1.0);
55 probe all rgba 0.0 1.0 0.0 1.0