2021-01-22 14:51:13 +00:00
|
|
|
|
2021-01-27 00:58:22 +00:00
|
|
|
out vec4 sk_FragColor;
|
2021-08-19 22:15:49 +00:00
|
|
|
uniform mat2 testMatrix2x2;
|
2021-01-26 21:28:12 +00:00
|
|
|
uniform vec4 colorRed;
|
|
|
|
uniform vec4 colorGreen;
|
2021-04-06 17:47:19 +00:00
|
|
|
uniform float unknownInput;
|
2022-01-25 16:53:41 +00:00
|
|
|
bool test_matrix_op_scalar_float_b() {
|
|
|
|
bool ok = true;
|
|
|
|
return ok;
|
|
|
|
}
|
|
|
|
bool test_matrix_op_scalar_half_b() {
|
|
|
|
bool ok = true;
|
|
|
|
return ok;
|
|
|
|
}
|
2022-01-25 16:56:20 +00:00
|
|
|
bool test_matrix_op_matrix_float_b() {
|
|
|
|
bool ok = true;
|
|
|
|
return ok;
|
|
|
|
}
|
|
|
|
bool test_matrix_op_matrix_half_b() {
|
|
|
|
bool ok = true;
|
|
|
|
return ok;
|
|
|
|
}
|
2022-03-25 19:32:51 +00:00
|
|
|
bool test_vector_op_matrix_float_b() {
|
|
|
|
bool ok = true;
|
|
|
|
return ok;
|
|
|
|
}
|
|
|
|
bool test_vector_op_matrix_half_b() {
|
|
|
|
bool ok = true;
|
|
|
|
return ok;
|
|
|
|
}
|
|
|
|
bool test_matrix_op_vector_float_b() {
|
|
|
|
bool ok = true;
|
|
|
|
return ok;
|
|
|
|
}
|
|
|
|
bool test_matrix_op_vector_half_b() {
|
|
|
|
bool ok = true;
|
|
|
|
return ok;
|
|
|
|
}
|
2021-01-22 14:51:13 +00:00
|
|
|
vec4 main() {
|
2021-03-15 22:08:38 +00:00
|
|
|
bool _0_ok = true;
|
2021-04-06 17:47:19 +00:00
|
|
|
_0_ok = _0_ok && mat3(unknownInput) == mat3(mat2(1.0));
|
|
|
|
_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));
|
2021-08-19 22:15:49 +00:00
|
|
|
_0_ok = _0_ok && vec4(testMatrix2x2) == vec4(1.0, 2.0, 3.0, 4.0);
|
2021-11-11 16:36:52 +00:00
|
|
|
{
|
|
|
|
float _3_five = 5.0;
|
|
|
|
_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);
|
|
|
|
}
|
2021-11-15 13:42:15 +00:00
|
|
|
{
|
|
|
|
_0_ok = _0_ok && mat4(mat3(testMatrix2x2))[0] == vec4(1.0, 2.0, 0.0, 0.0);
|
|
|
|
_0_ok = _0_ok && mat4(mat3(testMatrix2x2))[1] == vec4(3.0, 4.0, 0.0, 0.0);
|
|
|
|
}
|
2022-03-25 19:32:51 +00:00
|
|
|
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;
|
2021-01-22 14:51:13 +00:00
|
|
|
}
|