xref: /aosp_15_r20/external/skia/resources/sksl/errors/MatrixToVectorCast3x3.rts (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
1// Expect 4 errors
2
3const half3x3 testMatrix3x3 = half3x3(1, 2, 3, 4, 5, 6, 7, 8, 9);
4half    testScalar    = half (testMatrix3x3);
5half2   testVec2      = half2(testMatrix3x3);
6half3   testVec3      = half3(testMatrix3x3);
7half4   testVec4      = half4(testMatrix3x3);
8
9/*%%*
10'half3x3' is not a valid parameter to 'half' constructor; use '[0][0]' instead
11'half3x3' is not a valid parameter to 'half2' constructor
12'half3x3' is not a valid parameter to 'half3' constructor
13'half3x3' is not a valid parameter to 'half4' constructor
14*%%*/
15