xref: /aosp_15_r20/external/skia/resources/sksl/errors/UniformStructFanOut.sksl (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
1struct A { int a[99], b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z; };
2struct B { A   a[99], b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z; };
3struct C { B   a[99], b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z; };
4struct D { C   a[99], b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z; };
5struct E { D   a[99], b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z; };
6struct F { E   a[99], b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z; };
7struct G { F   a[99], b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z; };
8struct H { G   a[99], b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z; };
9struct I { H   a[99], b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z; };
10struct J { I   a[99], b, c, d, e, f, g, h; bool  k; int   n, o, p, q, r, s, t, u, v, w, x, y, z; };
11struct K { J   a[99], b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z; };
12struct L { K   a[99], b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z; };
13struct M { L   a[99], b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z; };
14struct N { M   a[99], b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z; };
15struct O { N   a[99], b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z; };
16struct P { O   a[99], b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z; };
17struct Q { P   a[99], b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z; };
18struct R { Q   a[99], b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z; };
19struct S { R   a[99], b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z; };
20struct T { S   a[99], b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z; };
21struct U { T   a[99], b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z; };
22struct V { U   a[99], b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z; };
23struct W { V   a[99], b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z; };
24struct X { W   a[99], b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z; };
25struct Y { X   a[99], b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z; };
26struct Z { Y   a[99], b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z; };
27
28// This uniform is invalid for two reasons. Of course, its size is astronomical. Besides that, it
29// also contains a secret buried type which is not allowed to exist in a uniform.
30uniform Z myUniform;
31
32void main() {}
33
34/*%%*
35array size is too large
36struct is too large
37array size is too large
38struct is too large
39array size is too large
40struct is too large
41array size is too large
42struct is too large
43array size is too large
44struct is too large
45array size is too large
46struct is too large
47array size is too large
48struct is too large
49struct 'I' is too deeply nested
50array size is too large
51struct is too large
52struct 'J' is too deeply nested
53array size is too large
54struct is too large
55struct 'K' is too deeply nested
56array size is too large
57struct is too large
58struct 'L' is too deeply nested
59array size is too large
60struct is too large
61struct 'M' is too deeply nested
62array size is too large
63struct is too large
64struct 'N' is too deeply nested
65array size is too large
66struct is too large
67struct 'O' is too deeply nested
68array size is too large
69struct is too large
70struct 'P' is too deeply nested
71array size is too large
72struct is too large
73struct 'Q' is too deeply nested
74array size is too large
75struct is too large
76struct 'R' is too deeply nested
77array size is too large
78struct is too large
79struct 'S' is too deeply nested
80array size is too large
81struct is too large
82struct 'T' is too deeply nested
83array size is too large
84struct is too large
85struct 'U' is too deeply nested
86array size is too large
87struct is too large
88struct 'V' is too deeply nested
89array size is too large
90struct is too large
91struct 'W' is too deeply nested
92array size is too large
93struct is too large
94struct 'X' is too deeply nested
95array size is too large
96struct is too large
97struct 'Y' is too deeply nested
98array size is too large
99struct is too large
100struct 'Z' is too deeply nested
101variables of type 'Z' may not be uniform
102caused by:
103struct J { I   a[99], b, c, d, e, f, g, h; bool  k; int   n, o, p, q, r, s, t, u, v, w, x, y, z; };
104                                           ^^^^^^^
105*%%*/
106