| #include <metal_stdlib> |
| using namespace metal; |
| struct tint_module_vars_struct { |
| const constant float3x4* u; |
| thread float3x4* p; |
| }; |
| |
| kernel void f(const constant float3x4* u [[buffer(0)]]) { |
| thread float3x4 p = float3x4(0.0f); |
| 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].ywxz; |
| (*tint_module_vars.p)[0][1] = (*tint_module_vars.u)[1][0]; |
| } |