blob: 594ee9d475a9ebfd76751cd02f9fb6a9800fa8b2 [file] [log] [blame]
#include <metal_stdlib>
using namespace metal;
struct VSOut {
float4 pos;
};
void foo(thread VSOut* const out) {
float4 pos = float4(1.0f, 2.0f, 3.0f, 4.0f);
(*(out)).pos = pos;
}
struct tint_symbol_1 {
float4 pos [[position]];
};
VSOut tint_symbol_inner() {
VSOut out = {};
foo(&(out));
return out;
}
vertex tint_symbol_1 tint_symbol() {
VSOut const inner_result = tint_symbol_inner();
tint_symbol_1 wrapper_result = {};
wrapper_result.pos = inner_result.pos;
return wrapper_result;
}