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>
85 lines
4.3 KiB
GLSL
85 lines
4.3 KiB
GLSL
### Compilation failed:
|
|
|
|
error: 16: type mismatch: '=' cannot operate on 'int', 'float'
|
|
void i_eq_float_literal_disallowed() { i = 1.0; }
|
|
^^^^^^^
|
|
error: 17: type mismatch: '=' cannot operate on 'int', 'float'
|
|
void i_eq_f_disallowed() { i = f; }
|
|
^^^^^
|
|
error: 18: type mismatch: '=' cannot operate on 'float', 'int'
|
|
void f_eq_i_disallowed() { f = i; }
|
|
^^^^^
|
|
error: 19: type mismatch: '+' cannot operate on 'int', 'float'
|
|
void i_plus_float_literal_disallowed() { i + 1.0; }
|
|
^^^^^^^
|
|
error: 20: type mismatch: '-' cannot operate on 'int', 'float'
|
|
void i_minus_float_literal_disallowed() { i - 1.0; }
|
|
^^^^^^^
|
|
error: 21: type mismatch: '*' cannot operate on 'int', 'float'
|
|
void i_mul_float_literal_disallowed() { i * 1.0; }
|
|
^^^^^^^
|
|
error: 22: type mismatch: '/' cannot operate on 'int', 'float'
|
|
void i_div_float_literal_disallowed() { i / 1.0; }
|
|
^^^^^^^
|
|
error: 23: type mismatch: '+' cannot operate on 'float', 'int'
|
|
void float_literal_plus_i_disallowed() { 1.0 + i; }
|
|
^^^^^^^
|
|
error: 24: type mismatch: '-' cannot operate on 'float', 'int'
|
|
void float_literal_minus_i_disallowed() { 1.0 - i; }
|
|
^^^^^^^
|
|
error: 25: type mismatch: '*' cannot operate on 'float', 'int'
|
|
void float_literal_mul_i_disallowed() { 1.0 * i; }
|
|
^^^^^^^
|
|
error: 26: type mismatch: '/' cannot operate on 'float', 'int'
|
|
void float_literal_div_i_disallowed() { 1.0 / i; }
|
|
^^^^^^^
|
|
error: 27: type mismatch: '+' cannot operate on 'int', 'float'
|
|
void i_plus_f_disallowed() { i + f; }
|
|
^^^^^
|
|
error: 28: type mismatch: '-' cannot operate on 'int', 'float'
|
|
void i_minus_f_disallowed() { i - f; }
|
|
^^^^^
|
|
error: 29: type mismatch: '*' cannot operate on 'int', 'float'
|
|
void i_mul_f_disallowed() { i * f; }
|
|
^^^^^
|
|
error: 30: type mismatch: '/' cannot operate on 'int', 'float'
|
|
void i_div_f_disallowed() { i / f; }
|
|
^^^^^
|
|
error: 31: type mismatch: '+' cannot operate on 'float', 'int'
|
|
void f_plus_i_disallowed() { f + i; }
|
|
^^^^^
|
|
error: 32: type mismatch: '-' cannot operate on 'float', 'int'
|
|
void f_minus_i_disallowed() { f - i; }
|
|
^^^^^
|
|
error: 33: type mismatch: '*' cannot operate on 'float', 'int'
|
|
void f_mul_i_disallowed() { f * i; }
|
|
^^^^^
|
|
error: 34: type mismatch: '/' cannot operate on 'float', 'int'
|
|
void f_div_i_disallowed() { f / i; }
|
|
^^^^^
|
|
error: 35: unknown identifier 'u'
|
|
void f_plus_u_disallowed() { f + u; }
|
|
^
|
|
error: 36: unknown identifier 'u'
|
|
void f_minus_u_disallowed() { f - u; }
|
|
^
|
|
error: 37: unknown identifier 'u'
|
|
void f_mul_u_disallowed() { f * u; }
|
|
^
|
|
error: 38: unknown identifier 'u'
|
|
void f_div_u_disallowed() { f / u; }
|
|
^
|
|
error: 39: unknown identifier 'u'
|
|
void i_plus_u_disallowed() { i + u; }
|
|
^
|
|
error: 40: unknown identifier 'u'
|
|
void i_minus_u_disallowed() { i - u; }
|
|
^
|
|
error: 41: unknown identifier 'u'
|
|
void i_mul_u_disallowed() { i * u; }
|
|
^
|
|
error: 42: unknown identifier 'u'
|
|
void i_div_u_disallowed() { i / u; }
|
|
^
|
|
27 errors
|