skia2/resources/sksl/errors/SwizzleDomain.sksl
John Stiles a456175a07 Add expected errors to every test file.
This was (crudely) automated with shell scripts:
http://go/paste/5484300603490304

Change-Id: Ic9e1c93112772d303d1158eb26d995f27b439eba
Bug: skia:12665
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/505637
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: John Stiles <johnstiles@google.com>
Auto-Submit: John Stiles <johnstiles@google.com>
2022-02-08 18:20:25 +00:00

45 lines
1.0 KiB
Plaintext

// Expect 16 errors
float4 v;
float4 xyra() { return v.xyra; }
float4 zxtq() { return v.zxtq; }
float4 wwRB() { return v.wwRB; }
float4 rgxy() { return v.rgxy; }
float4 bast() { return v.bast; }
float4 gbLT() { return v.gbLT; }
float4 sxyz() { return v.sxyz; }
float4 tpbb() { return v.tpbb; }
float4 qsTR() { return v.qsTR; }
float4 LTxy() { return v.LTxy; }
float4 TRba() { return v.TRba; }
float4 RBst() { return v.RBst; }
float4 xrsL() { return v.xrsL; }
float4 ygtT() { return v.ygtT; }
float4 zbpR() { return v.zbpR; }
float4 waqB() { return v.waqB; }
/*%%*
invalid swizzle mask 'xyra'
invalid swizzle mask 'zxtq'
invalid swizzle mask 'wwRB'
invalid swizzle mask 'rgxy'
invalid swizzle mask 'bast'
invalid swizzle mask 'gbLT'
invalid swizzle mask 'sxyz'
invalid swizzle mask 'tpbb'
invalid swizzle mask 'qsTR'
invalid swizzle mask 'LTxy'
invalid swizzle mask 'TRba'
invalid swizzle mask 'RBst'
invalid swizzle mask 'xrsL'
invalid swizzle mask 'ygtT'
invalid swizzle mask 'zbpR'
invalid swizzle mask 'waqB'
*%%*/