skia2/resources/sksl/errors/ProgramTooLarge_Globals.sksl
John Stiles e7a9535247 Enforce basic limits on global size in SkSL.
Much like http://review.skia.org/467759, this CL defensively guards
against programs which consume more space than is reasonable. Globals
exist outside of functions, so they wouldn't be caught by the stack size
checks.

Change-Id: I035f27d57bc329508820a729a1e367ecaadfe156
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/467760
Reviewed-by: Ethan Nicholas <ethannicholas@google.com>
Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
Auto-Submit: John Stiles <johnstiles@google.com>
2021-11-04 18:34:19 +00:00

14 lines
147 B
Plaintext

struct S {
half4 ah4[1];
half ah[1000];
half4 h4;
half h;
};
int small;
S medium;
S large[10];
S extra_large[100];
S xxl[50000];