skia2/resources/sksl/errors/SwizzleDomain.sksl
John Stiles 9191e813a0 Enforce consistency in swizzle domains.
GLSL disallows mixing swizzle domains within a single swizzle:
http://screen/93eHNQDbx35hMdk
SkSL now disallows it as well.

Change-Id: Ied2e11ee04285b143a864e28cac30335f01aad0e
Bug: skia:10621
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/426458
Commit-Queue: John Stiles <johnstiles@google.com>
Auto-Submit: John Stiles <johnstiles@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
2021-07-09 20:30:22 +00:00

26 lines
565 B
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; }