xref: /aosp_15_r20/external/skia/tests/sksl/shared/StructMaxDepth.metal (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
1#include <metal_stdlib>
2#include <simd/simd.h>
3#ifdef __clang__
4#pragma clang diagnostic ignored "-Wall"
5#endif
6using namespace metal;
7struct S1 {
8    int x;
9};
10struct S2 {
11    S1 x;
12};
13struct S3 {
14    S2 x;
15};
16struct S4 {
17    S3 x;
18};
19struct S5 {
20    S4 x;
21};
22struct S6 {
23    S5 x;
24};
25struct S7 {
26    S6 x;
27};
28struct S8 {
29    S7 x;
30};
31struct SA1 {
32    array<int, 2> x;
33};
34struct SA2 {
35    array<SA1, 2> x;
36};
37struct SA3 {
38    array<SA2, 2> x;
39};
40struct SA4 {
41    array<SA3, 2> x;
42};
43struct SA5 {
44    array<SA4, 2> x;
45};
46struct SA6 {
47    array<SA5, 2> x;
48};
49struct SA7 {
50    array<SA6, 2> x;
51};
52struct SA8 {
53    array<SA7, 2> x;
54};
55struct Inputs {
56};
57struct Outputs {
58    half4 sk_FragColor [[color(0)]];
59};
60