blob: 8a832b8becca37a4462225c84c1e9ac3b66a344d [file] [log] [blame]
#include <metal_stdlib>
using namespace metal;
struct tint_module_vars_struct {
thread half2x2* m;
device half2x2* out;
};
kernel void f(device half2x2* out [[buffer(0)]]) {
thread half2x2 m = half2x2(half2(0.0h, 1.0h), half2(2.0h, 3.0h));
tint_module_vars_struct const tint_module_vars = {.m=(&m), .out=out};
(*tint_module_vars.out) = (*tint_module_vars.m);
}