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>
37 lines
1.7 KiB
Plaintext
37 lines
1.7 KiB
Plaintext
### Compilation failed:
|
|
|
|
error: 6: 'main' parameters must be (vec4|float4|half4, vec4|float4|half4)
|
|
half4 main() { return half4(1); }
|
|
^^^^^^^^^^^^
|
|
error: 7: 'main' parameters must be (vec4|float4|half4, vec4|float4|half4)
|
|
half4 main(half4 src) { return src; }
|
|
^^^^^^^^^^^^^^^^^^^^^
|
|
error: 7: unknown identifier 'src'
|
|
half4 main(half4 src) { return src; }
|
|
^^^
|
|
error: 8: 'main' parameters must be (vec4|float4|half4, vec4|float4|half4)
|
|
half4 main(half2 coords, half4 src) { return src; }
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
error: 8: unknown identifier 'src'
|
|
half4 main(half2 coords, half4 src) { return src; }
|
|
^^^
|
|
error: 9: 'main' parameters must be (vec4|float4|half4, vec4|float4|half4)
|
|
half4 main(half2 coords, half4 src, half4 dst) { return src * dst; }
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
error: 9: unknown identifier 'src'
|
|
half4 main(half2 coords, half4 src, half4 dst) { return src * dst; }
|
|
^^^
|
|
error: 9: unknown identifier 'dst'
|
|
half4 main(half2 coords, half4 src, half4 dst) { return src * dst; }
|
|
^^^
|
|
error: 10: 'main' parameters must be (vec4|float4|half4, vec4|float4|half4)
|
|
half4 main(half4 src, half4 dst, half4 bonusColor) { return src * dst; }
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
error: 10: unknown identifier 'src'
|
|
half4 main(half4 src, half4 dst, half4 bonusColor) { return src * dst; }
|
|
^^^
|
|
error: 10: unknown identifier 'dst'
|
|
half4 main(half4 src, half4 dst, half4 bonusColor) { return src * dst; }
|
|
^^^
|
|
11 errors
|