#include <metal_stdlib> | |
using namespace metal; | |
struct S { | |
/* 0x0000 */ float f; | |
}; | |
struct tint_module_vars_struct { | |
const device S* in; | |
device S* out; | |
}; | |
kernel void tint_symbol(const device S* in [[buffer(1)]], device S* out [[buffer(0)]]) { | |
tint_module_vars_struct const tint_module_vars = tint_module_vars_struct{.in=in, .out=out}; | |
(*tint_module_vars.out) = (*tint_module_vars.in); | |
} |