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