blob: 43b2918a8450a6a5bc9a6cab65b1f9b686549da1 [file]
#include <metal_stdlib>
using namespace metal;
struct tint_module_vars_struct {
const constant half4x2* u;
thread half4x2* p;
};
kernel void f(const constant half4x2* u [[buffer(0)]]) {
thread half4x2 p = half4x2(0.0h);
tint_module_vars_struct const tint_module_vars = tint_module_vars_struct{.u=u, .p=(&p)};
(*tint_module_vars.p) = (*tint_module_vars.u);
(*tint_module_vars.p)[1u] = (*tint_module_vars.u)[0u];
(*tint_module_vars.p)[1u] = (*tint_module_vars.u)[0u].yx;
(*tint_module_vars.p)[0u].y = (*tint_module_vars.u)[1u].x;
}