skia2/tests/sksl/runtime_errors/InvalidBlendMain.skvm
Ethan Nicholas cb13c892af Added range highlighting to SkSL error reports
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>
2022-04-07 13:29:48 +00:00

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