skia2/tests/sksl/runtime_errors/IllegalPrecisionQualifiers.skvm
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

34 lines
1.1 KiB
Plaintext

### Compilation failed:
error: 5: only one precision qualifier can be used
mediump highp int no_multiple_qualifiers;
^^^^^^^^^^^^^
error: 6: only one precision qualifier can be used
mediump lowp int no_multiple_qualifiers_2;
^^^^^^^^^^^^
error: 7: only one precision qualifier can be used
highp lowp int no_multiple_qualifiers_3;
^^^^^^^^^^
error: 8: only one precision qualifier can be used
highp mediump lowp int no_multiple_qualifiers_4;
^^^^^^^^^^^^^^^^^^
error: 9: type 'S' does not support precision qualifiers
highp S no_structs;
^^^^^
error: 10: type 'bool' does not support precision qualifiers
mediump bool no_bools;
^^^^^^^
error: 11: type 'colorFilter' does not support precision qualifiers
uniform lowp colorFilter no_opaque;
^^^^^^^^^^^^
error: 12: type 'half' does not support precision qualifiers
uniform highp half no_half_highp;
^^^^^^^^^^^^^
error: 13: type 'half' does not support precision qualifiers
uniform mediump half no_half_mediump;
^^^^^^^^^^^^^^^
error: 14: type 'half' does not support precision qualifiers
uniform lowp half no_lowp_mediump;
^^^^^^^^^^^^
10 errors