| |
| out vec4 sk_FragColor; |
| uniform vec4 colorGreen; |
| uniform vec4 colorRed; |
| uniform mat2 testMatrix2x2; |
| uniform mat3 testMatrix3x3; |
| vec4 main() { |
| bool _0_ok = true; |
| _0_ok = _0_ok && testMatrix2x2 == mat2(1.0, 2.0, 3.0, 4.0); |
| _0_ok = _0_ok && testMatrix3x3 == mat3(1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0); |
| _0_ok = _0_ok && testMatrix2x2 != mat2(100.0); |
| _0_ok = _0_ok && testMatrix3x3 != mat3(9.0, 8.0, 7.0, 6.0, 5.0, 4.0, 3.0, 2.0, 1.0); |
| float _1_zero = colorGreen.x; |
| float _2_one = colorGreen.y; |
| float _3_two = 2.0 * _2_one; |
| float _4_nine = 9.0 * _2_one; |
| _0_ok = _0_ok && mat2(_2_one, _1_zero, _1_zero, _2_one) == mat2(1.0, 0.0, 0.0, 1.0); |
| _0_ok = _0_ok && !(mat2(_2_one, _1_zero, _2_one, _2_one) == mat2(1.0, 0.0, 0.0, 1.0)); |
| _0_ok = _0_ok && mat2(_2_one) == mat2(1.0); |
| _0_ok = _0_ok && !(mat2(_2_one) == mat2(0.0)); |
| _0_ok = _0_ok && mat2(-_2_one) == mat2(-1.0); |
| _0_ok = _0_ok && mat2(_1_zero) == mat2(-0.0); |
| _0_ok = _0_ok && -mat2(-_2_one) == mat2(1.0); |
| _0_ok = _0_ok && -mat2(_1_zero) == mat2(-0.0); |
| _0_ok = _0_ok && mat2(_2_one) == mat2(1.0, 0.0, 0.0, 1.0); |
| _0_ok = _0_ok && !(mat2(_3_two) == mat2(1.0, 0.0, 0.0, 1.0)); |
| _0_ok = _0_ok && !(mat2(_2_one) != mat2(1.0)); |
| _0_ok = _0_ok && mat2(_2_one) != mat2(0.0); |
| _0_ok = _0_ok && mat3(_2_one, _1_zero, _1_zero, _1_zero, _2_one, _1_zero, _1_zero, _1_zero, _2_one) == mat3(mat2(1.0)); |
| _0_ok = _0_ok && mat3(_4_nine, _1_zero, _1_zero, _1_zero, _4_nine, _1_zero, _1_zero, _1_zero, _2_one) == mat3(mat2(9.0)); |
| _0_ok = _0_ok && mat3(_2_one) == mat3(mat2(1.0)); |
| _0_ok = _0_ok && mat3(_4_nine, 0.0, 0.0, 0.0, _4_nine, 0.0, 0.0, 0.0, _2_one) == mat3(mat2(9.0)); |
| _0_ok = _0_ok && mat2(mat3(_2_one)) == mat2(1.0); |
| _0_ok = _0_ok && mat2(mat3(_2_one)) == mat2(1.0); |
| _0_ok = _0_ok && mat2(_2_one, _1_zero, _1_zero, _2_one) == mat2(1.0); |
| _0_ok = _0_ok && mat2(_2_one, _1_zero, _1_zero, _2_one) == mat2(1.0); |
| _0_ok = _0_ok && mat2(_2_one, _1_zero, _1_zero, _2_one) == mat2(1.0); |
| _0_ok = _0_ok && vec4(testMatrix2x2) * vec4(_2_one) == vec4(1.0, 2.0, 3.0, 4.0); |
| _0_ok = _0_ok && vec4(testMatrix2x2) * vec4(_2_one) == vec4(testMatrix2x2); |
| _0_ok = _0_ok && vec4(testMatrix2x2) * vec4(_1_zero) == vec4(0.0); |
| mat3 _5_m = mat3(_2_one, _3_two, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, _4_nine); |
| _0_ok = _0_ok && _5_m[0] == vec3(1.0, 2.0, 3.0); |
| _0_ok = _0_ok && _5_m[1] == vec3(4.0, 5.0, 6.0); |
| _0_ok = _0_ok && _5_m[2] == vec3(7.0, 8.0, 9.0); |
| _0_ok = _0_ok && _5_m[0].x == 1.0; |
| _0_ok = _0_ok && _5_m[0].y == 2.0; |
| _0_ok = _0_ok && _5_m[0].z == 3.0; |
| _0_ok = _0_ok && _5_m[1].x == 4.0; |
| _0_ok = _0_ok && _5_m[1].y == 5.0; |
| _0_ok = _0_ok && _5_m[1].z == 6.0; |
| _0_ok = _0_ok && _5_m[2].x == 7.0; |
| _0_ok = _0_ok && _5_m[2].y == 8.0; |
| _0_ok = _0_ok && _5_m[2].z == 9.0; |
| return _0_ok ? colorGreen : colorRed; |
| } |