1 2uniform mat2 testMatrix2x2; 3uniform vec4 colorRed; 4uniform vec4 colorGreen; 5uniform float unknownInput; 6bool test_matrix_op_scalar_float_b() { 7 bool ok = true; 8 return ok; 9} 10bool test_matrix_op_scalar_half_b() { 11 bool ok = true; 12 return ok; 13} 14bool test_matrix_op_matrix_float_b() { 15 bool ok = true; 16 return ok; 17} 18bool test_matrix_op_matrix_half_b() { 19 bool ok = true; 20 return ok; 21} 22bool test_vector_op_matrix_float_b() { 23 bool ok = true; 24 return ok; 25} 26bool test_vector_op_matrix_half_b() { 27 bool ok = true; 28 return ok; 29} 30bool test_matrix_op_vector_float_b() { 31 bool ok = true; 32 return ok; 33} 34bool test_matrix_op_vector_half_b() { 35 bool ok = true; 36 return ok; 37} 38vec4 main() { 39 bool _0_ok = true; 40 _0_ok = _0_ok && mat3(unknownInput) == mat3(mat2(1.0)); 41 _0_ok = _0_ok && mat3(9.0, 0.0, 0.0, 0.0, 9.0, 0.0, 0.0, 0.0, unknownInput) == mat3(mat2(9.0)); 42 _0_ok = _0_ok && vec4(testMatrix2x2) == vec4(1.0, 2.0, 3.0, 4.0); 43 { 44 _0_ok = _0_ok && mat4(mat3(testMatrix2x2))[0] == vec4(1.0, 2.0, 0.0, 0.0); 45 _0_ok = _0_ok && mat4(mat3(testMatrix2x2))[1] == vec4(3.0, 4.0, 0.0, 0.0); 46 } 47 return (((((((_0_ok && test_matrix_op_scalar_float_b()) && test_matrix_op_scalar_half_b()) && test_matrix_op_matrix_float_b()) && test_matrix_op_matrix_half_b()) && test_vector_op_matrix_float_b()) && test_vector_op_matrix_half_b()) && test_matrix_op_vector_float_b()) && test_matrix_op_vector_half_b() ? colorGreen : colorRed; 48} 49