skia2/resources/sksl/runtime_errors/ProgramTooLarge_SplitLoops.rts
John Stiles 6dda78ac7b Add SkSL error tests for runtime_errors directory.
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>
2022-02-10 14:24:39 +00:00

16 lines
429 B
Plaintext

void e(inout int i) { for (int x=0; x<10; ++x) ++i; } // 100000
void d(inout int i) { for (int x=0; x<10; ++x) e(i); } // 10000
void c(inout int i) { for (int x=0; x<10; ++x) d(i); } // 1000
void b(inout int i) { for (int x=0; x<10; ++x) c(i); } // 100
void a(inout int i) { for (int x=0; x<10; ++x) b(i); } // 10
half4 main(float2 xy) {
int i = 0;
a(i);
return half4(0);
}
/*%%*
error: program is too large
*%%*/