skia2/tests/sksl/errors/ArrayPlus.glsl
Ethan Nicholas cb13c892af Added range highlighting to SkSL error reports
SkSL errors now identify the specific range of code they are describing,
rather than just the line number.

Change-Id: Ifabb3148476f9b4cd8e532f23e5b38e1cf33a87e
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/528039
Reviewed-by: John Stiles <johnstiles@google.com>
Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
2022-04-07 13:29:48 +00:00

22 lines
885 B
GLSL

### Compilation failed:
error: 1: '+' cannot operate on 'int[123]'
void array_plus_int () { int a[123]; +a; }
^^
error: 2: '+' cannot operate on 'int4[123]'
void array_plus_int4 () { int4 a[123]; +a; }
^^
error: 3: '+' cannot operate on 'float[123]'
void array_plus_float () { float a[123]; +a; }
^^
error: 4: '+' cannot operate on 'half3[123]'
void array_plus_half3 () { half3 a[123]; +a; }
^^
error: 5: '+' cannot operate on 'bool2[123]'
void array_plus_bool2 () { bool2 a[123]; +a; }
^^
error: 6: '+' cannot operate on 'half4x4[123]'
void array_plus_half4x4() { half4x4 a[123]; +a; }
^^
6 errors