blob: d6f5a914188f56ae6381a899ece212ea4c8c6a93 [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 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);
}