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>
31 lines
1.3 KiB
GLSL
31 lines
1.3 KiB
GLSL
### Compilation failed:
|
|
|
|
error: 7: 'half4' is not a valid parameter to 'half3' constructor; use '.xyz' instead
|
|
const half3 h3 = half3(h4);
|
|
^^^^^^^^^
|
|
error: 8: 'half4' is not a valid parameter to 'half2' constructor; use '.xy' instead
|
|
const half2 h2 = half2(h4);
|
|
^^^^^^^^^
|
|
error: 9: 'half4' is not a valid parameter to 'half' constructor; use '.x' instead
|
|
const half h = half (h4);
|
|
^^^^^^^^^
|
|
error: 12: 'int4' is not a valid parameter to 'int3' constructor; use '.xyz' instead
|
|
const int3 i3 = int3(i4);
|
|
^^^^^^^^
|
|
error: 13: 'int4' is not a valid parameter to 'int2' constructor; use '.xy' instead
|
|
const int2 i2 = int2(i4);
|
|
^^^^^^^^
|
|
error: 14: 'int4' is not a valid parameter to 'int' constructor; use '.x' instead
|
|
const int i = int (i4);
|
|
^^^^^^^^
|
|
error: 17: 'bool4' is not a valid parameter to 'bool3' constructor; use '.xyz' instead
|
|
const bool3 b3 = bool3(b4);
|
|
^^^^^^^^^
|
|
error: 18: 'bool4' is not a valid parameter to 'bool2' constructor; use '.xy' instead
|
|
const bool2 b2 = bool2(b4);
|
|
^^^^^^^^^
|
|
error: 19: 'bool4' is not a valid parameter to 'bool' constructor; use '.x' instead
|
|
const bool b = bool (b4);
|
|
^^^^^^^^^
|
|
9 errors
|