skia2/tests/sksl/errors/SwizzleOnlyLiterals.glsl
Ethan Nicholas 87e472722f Improved error reporting ranges for swizzles
Bug: skia:13171
Change-Id: I6dffb98ac2464f930995cf8ea57e422091d20fd2
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/531743
Reviewed-by: John Stiles <johnstiles@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
2022-04-20 20:46:51 +00:00

7 lines
158 B
GLSL

### Compilation failed:
error: 1: swizzle must refer to base expression
void func() { float x = 1.0; x = x.0; }
^
1 error