blob: 1d86ba450de2bdb8ef3a4884e5a1ad6fe6cc2d42 [file] [log] [blame]
#include <metal_stdlib>
using namespace metal;
struct tint_module_vars_struct {
device int* s;
};
void f(int _A, tint_module_vars_struct tint_module_vars) {
int const B = _A;
(*tint_module_vars.s) = B;
}
kernel void tint_symbol(device int* s [[buffer(0)]]) {
tint_module_vars_struct const tint_module_vars = tint_module_vars_struct{.s=s};
f(1, tint_module_vars);
}