blob: 3a3d966da02f0039db06b6eb7ee9acc35cf38ab3 [file] [log] [blame]
#include <metal_stdlib>
using namespace metal;
struct tint_module_vars_struct {
const constant half4x3* u;
thread half4x3* p;
};
kernel void f(const constant half4x3* u [[buffer(0)]]) {
thread half4x3 p = half4x3(0.0h);
tint_module_vars_struct const tint_module_vars = {.u=u, .p=(&p)};
(*tint_module_vars.p) = (*tint_module_vars.u);
(*tint_module_vars.p)[1] = (*tint_module_vars.u)[0];
(*tint_module_vars.p)[1] = (*tint_module_vars.u)[0].zxy;
(*tint_module_vars.p)[0][1] = (*tint_module_vars.u)[1][0];
}