xref: /aosp_15_r20/external/skia/tests/sksl/shared/UniformMatrixResize.glsl (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
1
2out vec4 sk_FragColor;
3uniform mat3 testMatrix3x3;
4uniform vec4 colorGreen;
5uniform vec4 colorRed;
6mat2 resizeMatrix_f22() {
7    return mat2(testMatrix3x3);
8}
9vec4 main() {
10    return resizeMatrix_f22() == mat2(1.0, 2.0, 4.0, 5.0) && mat3(resizeMatrix_f22()) == mat3(1.0, 2.0, 0.0, 4.0, 5.0, 0.0, 0.0, 0.0, 1.0) ? colorGreen : colorRed;
11}
12