1 2out vec4 sk_FragColor; 3uniform vec4 colorGreen; 4uniform vec4 colorRed; 5bool test_half_b() { 6 mat2 m1 = mat2(1.0, 2.0, 3.0, 4.0); 7 mat2 m3 = m1; 8 mat2 m4 = mat2(1.0); 9 m3 *= m4; 10 mat2 m5 = mat2(m1[0].x); 11 mat2 m6 = mat2(1.0, 2.0, 3.0, 4.0); 12 m6 += m5; 13 mat4 m10 = mat4(1.0); 14 mat4 m11 = mat4(2.0); 15 m11 -= m10; 16 return true; 17} 18vec4 main() { 19 mat2 _2_m1 = mat2(1.0, 2.0, 3.0, 4.0); 20 mat2 _4_m3 = _2_m1; 21 mat2 _5_m4 = mat2(1.0); 22 _4_m3 *= _5_m4; 23 mat2 _6_m5 = mat2(_2_m1[0].x); 24 mat2 _7_m6 = mat2(1.0, 2.0, 3.0, 4.0); 25 _7_m6 += _6_m5; 26 mat4 _10_m10 = mat4(1.0); 27 mat4 _11_m11 = mat4(2.0); 28 _11_m11 -= _10_m10; 29 return true && test_half_b() ? colorGreen : colorRed; 30} 31