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>
13 lines
793 B
GLSL
13 lines
793 B
GLSL
### Compilation failed:
|
|
|
|
error: 1: invalid arguments to 'float3' constructor (expected 3 scalars, but found 2)
|
|
void construct_float3_from_float_float() { float3 x = float3(1.0, 2.0); }
|
|
^^^^^^^^^^^^^^^^
|
|
error: 2: invalid arguments to 'float3' constructor (expected 3 scalars, but found 4)
|
|
void construct_float3_from_float_float_float_float() { float3 x = float3(1.0, 2.0, 3.0, 4.0); }
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
error: 3: 'int3' is not a valid parameter to 'bool' constructor
|
|
void construct_bool_from_int3() { bool x = bool(int3(77)); }
|
|
^^^^^^^^^^^^^^
|
|
3 errors
|