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>
25 lines
1.1 KiB
Plaintext
25 lines
1.1 KiB
Plaintext
### Compilation failed:
|
|
|
|
error: 6: 'main' parameters must be (float2, (vec4|float4|half4)?)
|
|
half4 main() { return half4(1); }
|
|
^^^^^^^^^^^^
|
|
error: 7: 'main' parameters must be (float2, (vec4|float4|half4)?)
|
|
half4 main(half4 color) { return color; }
|
|
^^^^^^^^^^^^^^^^^^^^^^^
|
|
error: 7: unknown identifier 'color'
|
|
half4 main(half4 color) { return color; }
|
|
^^^^^
|
|
error: 8: 'main' parameters must be (float2, (vec4|float4|half4)?)
|
|
half4 main(float2 xy, half4 color, half4 bonusColor) { return color; }
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
error: 8: unknown identifier 'color'
|
|
half4 main(float2 xy, half4 color, half4 bonusColor) { return color; }
|
|
^^^^^
|
|
error: 9: 'main' parameters must be (float2, (vec4|float4|half4)?)
|
|
half4 main(half4 outOfOrderColor, float2 outOfOrderXy) { return color; }
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
error: 9: unknown identifier 'color'
|
|
half4 main(half4 outOfOrderColor, float2 outOfOrderXy) { return color; }
|
|
^^^^^
|
|
7 errors
|