1cb93a386Sopenharmony_ci 2cb93a386Sopenharmony_ciout vec4 sk_FragColor; 3cb93a386Sopenharmony_ciuniform vec4 colorGreen; 4cb93a386Sopenharmony_ciuniform vec4 colorRed; 5cb93a386Sopenharmony_ciuniform mat2 testMatrix2x2; 6cb93a386Sopenharmony_civec4 main() { 7cb93a386Sopenharmony_ci vec4 f4 = vec4(testMatrix2x2); 8cb93a386Sopenharmony_ci bool ok = mat2(f4.xyz, 4.0) == mat2(1.0, 2.0, 3.0, 4.0); 9cb93a386Sopenharmony_ci ok = ok && mat3(f4.xy, f4.zw, f4, f4.x) == mat3(1.0, 2.0, 3.0, 4.0, 1.0, 2.0, 3.0, 4.0, 1.0); 10cb93a386Sopenharmony_ci ok = ok && mat4(f4.xyz, f4.wxy, f4.zwxy, f4.zw, f4) == mat4(1.0, 2.0, 3.0, 4.0, 1.0, 2.0, 3.0, 4.0, 1.0, 2.0, 3.0, 4.0, 1.0, 2.0, 3.0, 4.0); 11cb93a386Sopenharmony_ci return ok ? colorGreen : colorRed; 12cb93a386Sopenharmony_ci} 13