blob: c29f3910bdb963ec7070c329bbb8d8e10ebb2f17 [file] [log] [blame]
#include <metal_stdlib>
using namespace metal;
struct tint_module_vars_struct {
const constant uint* value;
device uint* output;
};
void foo(const constant uint* const p, tint_module_vars_struct tint_module_vars) {
(*tint_module_vars.output) = (*p);
}
[[max_total_threads_per_threadgroup(1)]]
kernel void v(const constant uint* value [[buffer(30)]], device uint* output [[buffer(0)]]) {
tint_module_vars_struct const tint_module_vars = tint_module_vars_struct{.value=value, .output=output};
foo(tint_module_vars.value, tint_module_vars);
}