blob: f147501bf26e43e0f4e0aa4b33d698d3464db0c8 [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;
}
[[max_total_threads_per_threadgroup(1)]]
kernel void v(device int* s [[buffer(0)]]) {
tint_module_vars_struct const tint_module_vars = tint_module_vars_struct{.s=s};
f(1, tint_module_vars);
}