blob: 30b3ccf3edc1c4d630dc4a3c0fafe880534e2607 [file] [log] [blame]
#include <metal_stdlib>
using namespace metal;
struct tint_module_vars_struct {
thread float4* P;
};
float4 func(thread float4* const pointer) {
return (*pointer);
}
[[max_total_threads_per_threadgroup(1)]]
kernel void v() {
thread float4 P = 0.0f;
tint_module_vars_struct const tint_module_vars = tint_module_vars_struct{.P=(&P)};
float4 const r = func(tint_module_vars.P);
}