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.4 KiB
GLSL
25 lines
1.4 KiB
GLSL
### Compilation failed:
|
|
|
|
error: 16: 'const' variable initializer must be a constant expression
|
|
void from_uniform() { const float x = u; }
|
|
^
|
|
error: 17: 'const' variable initializer must be a constant expression
|
|
void from_parameter(float p) { const float x = p; }
|
|
^
|
|
error: 18: 'const' variable initializer must be a constant expression
|
|
void from_const_parameter(const float p) { const float x = p; }
|
|
^
|
|
error: 19: 'const' variable initializer must be a constant expression
|
|
void from_non_const_local() { float x = u; const float y = x; }
|
|
^
|
|
error: 20: 'const' variable initializer must be a constant expression
|
|
void from_non_const_expression() { const float x = u + u; }
|
|
^^^^^
|
|
error: 21: 'const' variable initializer must be a constant expression
|
|
void from_mixed_expression() { const float x = c + u; }
|
|
^^^^^
|
|
error: 22: 'const' variable initializer must be a constant expression
|
|
void from_non_const_struct_field() { const float x = s.f; }
|
|
^^^
|
|
7 errors
|