diff options
Diffstat (limited to 'resources/sksl/errors/MatrixToVectorCastBoolean.rts')
-rw-r--r-- | resources/sksl/errors/MatrixToVectorCastBoolean.rts | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/resources/sksl/errors/MatrixToVectorCastBoolean.rts b/resources/sksl/errors/MatrixToVectorCastBoolean.rts new file mode 100644 index 0000000000..ef25f21983 --- /dev/null +++ b/resources/sksl/errors/MatrixToVectorCastBoolean.rts @@ -0,0 +1,13 @@ +// Expect 3 errors + +const half2x2 testMatrix2x2 = half2x2(1, 2, 3, 4); +bool testScalar = bool (testMatrix2x2); +bool2 testVec2 = bool2(testMatrix2x2); +bool3 testVec3 = bool3(testMatrix2x2); +bool4 testVec4 = bool4(testMatrix2x2); // not an error + +/*%%* +'half2x2' is not a valid parameter to 'bool' constructor +'half2x2' is not a valid parameter to 'bool2' constructor +'half2x2' is not a valid parameter to 'bool3' constructor +*%%*/ |