xref: /aosp_15_r20/external/skia/tests/sksl/shared/InterfaceBlockInoutArray.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 Inputs {
8};
9struct Outputs {
10    half4 sk_FragColor [[color(0)]];
11};
12struct InterfaceBlockIn {
13    int x;
14} i[3];
15thread struct InterfaceBlockOut {
16    int x;
17} o[3];
18struct Globals {
19    constant InterfaceBlockIn* i;
20    constant InterfaceBlockOut* o;
21};
22