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>
14 lines
305 B
Plaintext
14 lines
305 B
Plaintext
// Expect 3 errors
|
|
|
|
void discard_stmt() { discard; }
|
|
|
|
int do_loop(int x) { do { x++; } while(x < 1); return x; }
|
|
|
|
int while_loop(int x) { while (x < 1) { x++; } return x; }
|
|
|
|
/*%%*
|
|
discard statement is only permitted in fragment shaders
|
|
do-while loops are not supported
|
|
while loops are not supported
|
|
*%%*/
|