blob: 7b8a3429d8f5d845f8233ff2d26ae79a33024d65 [file] [log] [blame]
#include <metal_stdlib>
using namespace metal;
struct tint_module_vars_struct {
thread float4x4* m;
device float4x4* out;
};
kernel void f(device float4x4* out [[buffer(0)]]) {
thread float4x4 m = float4x4(float4(0.0f, 1.0f, 2.0f, 3.0f), float4(4.0f, 5.0f, 6.0f, 7.0f), float4(8.0f, 9.0f, 10.0f, 11.0f), float4(12.0f, 13.0f, 14.0f, 15.0f));
tint_module_vars_struct const tint_module_vars = {.m=(&m), .out=out};
(*tint_module_vars.out) = (*tint_module_vars.m);
}