• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#include <metal_stdlib>
2#include <simd/simd.h>
3using namespace metal;
4struct Inputs {
5};
6struct Outputs {
7    half4 sk_FragColor [[color(0)]];
8};
9struct testBlock {
10    half x;
11    char pad0[2];
12    int w;
13    char pad1[8];
14    array<half, 2> y;
15    char pad2[28];
16    half3x3 z;
17};
18struct Globals {
19    constant testBlock* _anonInterface0;
20};
21fragment Outputs fragmentMain(Inputs _in [[stage_in]], constant testBlock& _anonInterface0 [[buffer(0)]], bool _frontFacing [[front_facing]], float4 _fragCoord [[position]]) {
22    Globals _globals{&_anonInterface0};
23    (void)_globals;
24    Outputs _out;
25    (void)_out;
26    _out.sk_FragColor = half4(_globals._anonInterface0->x, _globals._anonInterface0->y[0], _globals._anonInterface0->y[1], 0.0h);
27    return _out;
28}
29