6dda78ac7b
This enables the SkSL error testing logic for runtime effects. The core logic is identical, only the ProgramKind differs. (Error creation scripts: http://go/paste/6413797460803584 with some light post-processing) Change-Id: I877205b3cc1014b50ccccf6037a2f4034c07543e Bug: skia:12665 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/506538 Reviewed-by: Brian Osman <brianosman@google.com> Commit-Queue: John Stiles <johnstiles@google.com> Auto-Submit: John Stiles <johnstiles@google.com>
13 lines
369 B
Plaintext
13 lines
369 B
Plaintext
// Expect 1 error
|
|
|
|
// OK: SkSL allows ES3-style array declaration syntax. (This wouldn't work in native GLSL ES2.)
|
|
float[123] global_var;
|
|
void fn() { float[123] local_var; }
|
|
|
|
// ERROR: SkSL (like GLSL ES2) does not allow array constructors in strict-ES2 mode.
|
|
void array_ctor() { float[3](1, 2, 3); }
|
|
|
|
/*%%*
|
|
construction of array type 'float[3]' is not supported
|
|
*%%*/
|