xref: /aosp_15_r20/external/skia/resources/sksl/workarounds/RewriteMatrixVectorMultiply.sksl (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
1/*#pragma settings RewriteMatrixVectorMultiply*/
2
3uniform half4x4 testMatrix4x4;
4uniform half4 testValues;
5
6half4 main() {
7    half4x4 m44 = half4x4(123);
8    half4   v4  = half4(0, 1, 2, 3);
9    return (m44 * v4) + (testMatrix4x4 * testValues);
10}
11