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