cb13c892af
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>
22 lines
855 B
GLSL
22 lines
855 B
GLSL
### Compilation failed:
|
|
|
|
error: 20: integer is out of range for type 'short': 99999
|
|
cast_int_to_short(99999);
|
|
^^^^^
|
|
error: 21: integer is out of range for type 'short': 67890
|
|
cast_int2_to_short2(int2(12345, 67890));
|
|
^^^^^^^^^^^^^^^^^^
|
|
error: 22: integer is out of range for type 'int': 5000000000
|
|
cast_float_to_int(5000000000.0);
|
|
^^^^^^^^^^^^
|
|
error: 23: integer is out of range for type 'int': 3000000000
|
|
cast_float3_to_int3(float3(3000000000, 2000000, 1000));
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
error: 24: integer is out of range for type 'short': 32768
|
|
negate_short(-32768);
|
|
^^^^^^^^^^^^^^^^^^^^
|
|
error: 25: integer is out of range for type 'int': 2147483648
|
|
negate_int4(int4(-2147483648));
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
6 errors
|