xref: /aosp_15_r20/external/skia/resources/sksl/shared/UniformMatrixResize.sksl (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
1uniform float3x3 testMatrix3x3;
2uniform half4 colorGreen, colorRed;
3
4noinline float2x2 resizeMatrix() {
5    return float2x2(testMatrix3x3);
6}
7
8half4 main(float2 coords) {
9    return (resizeMatrix()           == float2x2(1, 2,
10                                                 4, 5) &&
11            float3x3(resizeMatrix()) == float3x3(1, 2, 0,
12                                                 4, 5, 0,
13                                                 0, 0, 1)) ? colorGreen : colorRed;
14}
15