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>
10 lines
388 B
GLSL
10 lines
388 B
GLSL
### Compilation failed:
|
|
|
|
error: 1: ternary operator result mismatch: 'bool', 'float'
|
|
void bool_or_float() { float x = 5 > 2 ? true : 1.0; }
|
|
^^^^^^^^^^
|
|
error: 2: ternary operator result mismatch: 'float3', 'float'
|
|
void float3_or_float() { float x = 5 > 2 ? float3(1) : 1.0; }
|
|
^^^^^^^^^^^^^^^
|
|
2 errors
|