blob: 17fece75887663280e7ad5d62bee3f33c6220edf [file] [log] [blame]
James Price851b18b2021-06-03 18:12:15 +00001#include <metal_stdlib>
2
3using namespace metal;
4struct S {
5 /* 0x0000 */ float f;
6 /* 0x0004 */ uint u;
Ben Clayton885488d2021-06-30 16:01:40 +00007 /* 0x0008 */ int8_t tint_pad[120];
James Price851b18b2021-06-03 18:12:15 +00008 /* 0x0080 */ packed_float4 v;
9 /* 0x0090 */ int8_t tint_pad_1[112];
10};
James Price7697c312021-06-04 14:40:28 +000011struct tint_symbol_2 {
James Price851b18b2021-06-03 18:12:15 +000012 float f [[user(locn0)]];
13 uint u [[user(locn1)]];
James Price851b18b2021-06-03 18:12:15 +000014};
15
James Price7697c312021-06-04 14:40:28 +000016fragment void frag_main(float4 tint_symbol_1 [[position]], tint_symbol_2 tint_symbol [[stage_in]], device S& output [[buffer(0)]]) {
17 S const input = {.f=tint_symbol.f, .u=tint_symbol.u, .v=tint_symbol_1};
James Price851b18b2021-06-03 18:12:15 +000018 float const f = input.f;
19 uint const u = input.u;
20 float4 const v = input.v;
21 output = input;
22 return;
23}
24