Update rive-cpp to 2.0 version
[platform/core/uifw/rive-tizen.git] / submodule / skia / tests / sksl / folding / MatrixFoldingES2.glsl
1
2 out vec4 sk_FragColor;
3 uniform mat2 testMatrix2x2;
4 uniform vec4 colorRed;
5 uniform vec4 colorGreen;
6 uniform float unknownInput;
7 bool test_matrix_op_scalar_float_b() {
8     bool ok = true;
9     return ok;
10 }
11 bool test_matrix_op_scalar_half_b() {
12     bool ok = true;
13     return ok;
14 }
15 bool test_matrix_op_matrix_float_b() {
16     bool ok = true;
17     return ok;
18 }
19 bool test_matrix_op_matrix_half_b() {
20     bool ok = true;
21     return ok;
22 }
23 bool test_vector_op_matrix_float_b() {
24     bool ok = true;
25     return ok;
26 }
27 bool test_vector_op_matrix_half_b() {
28     bool ok = true;
29     return ok;
30 }
31 bool test_matrix_op_vector_float_b() {
32     bool ok = true;
33     return ok;
34 }
35 bool test_matrix_op_vector_half_b() {
36     bool ok = true;
37     return ok;
38 }
39 vec4 main() {
40     bool _0_ok = true;
41     _0_ok = _0_ok && mat3(unknownInput) == mat3(mat2(1.0));
42     _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));
43     _0_ok = _0_ok && vec4(testMatrix2x2) == vec4(1.0, 2.0, 3.0, 4.0);
44     {
45         float _3_five = 5.0;
46         _0_ok = _0_ok && mat3(1.0, 2.0, 3.0, 4.0, _3_five, 6.0, 7.0, 8.0, 9.0)[1] == vec3(4.0, _3_five, 6.0);
47     }
48     {
49         _0_ok = _0_ok && mat4(mat3(testMatrix2x2))[0] == vec4(1.0, 2.0, 0.0, 0.0);
50         _0_ok = _0_ok && mat4(mat3(testMatrix2x2))[1] == vec4(3.0, 4.0, 0.0, 0.0);
51     }
52     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;
53 }