xref: /aosp_15_r20/external/skia/resources/sksl/errors/MatrixToVectorCastInteger.rts (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
1// Expect 3 errors
2
3const half2x2 testMatrix2x2 = half2x2(1, 2, 3, 4);
4int    testScalar    = int (testMatrix2x2);
5int2   testVec2      = int2(testMatrix2x2);
6int3   testVec3      = int3(testMatrix2x2);
7int4   testVec4      = int4(testMatrix2x2);  // not an error
8
9/*%%*
10'half2x2' is not a valid parameter to 'int' constructor
11'half2x2' is not a valid parameter to 'int2' constructor
12'half2x2' is not a valid parameter to 'int3' constructor
13*%%*/
14