| #include <metal_stdlib> |
| using namespace metal; |
| struct tint_symbol_1 { |
| float2x2 tint_symbol; |
| }; |
| struct tint_module_vars_struct { |
| threadgroup float2x2* W; |
| }; |
| |
| kernel void F(uint mat2x2 [[thread_index_in_threadgroup]], threadgroup tint_symbol_1* v [[threadgroup(0)]]) { |
| tint_module_vars_struct const tint_module_vars = tint_module_vars_struct{.W=(&(*v).tint_symbol)}; |
| if ((mat2x2 == 0u)) { |
| (*tint_module_vars.W) = float2x2(float2(0.0f), float2(0.0f)); |
| } |
| threadgroup_barrier(mem_flags::mem_threadgroup); |
| (*tint_module_vars.W)[0] = ((*tint_module_vars.W)[0] + 0.0f); |
| } |