#include <metal_stdlib>
#include <simd/simd.h>

using namespace metal;

struct cb1_struct
{
    float4 _RESERVED_IDENTIFIER_FIXUP_m0[1];
};

constant uint3 gl_WorkGroupSize [[maybe_unused]] = uint3(16u, 16u, 1u);

kernel void main0(constant cb1_struct& cb0_1 [[buffer(0)]], texture2d<float, access::write> u0 [[texture(0)]], uint3 gl_LocalInvocationID [[thread_position_in_threadgroup]])
{
    int2 _20 = int2(u0.get_width(), u0.get_height()) >> int2(uint2(4u));
    int _80;
    _80 = 0;
    for (; _80 < _20.y; _80++)
    {
        for (int _81 = 0; _81 < _20.x; )
        {
            u0.write(cb0_1._RESERVED_IDENTIFIER_FIXUP_m0[0].xxxx, uint2(((_20 * int3(gl_LocalInvocationID).xy) + int2(_80, _81))));
            _81++;
            continue;
        }
    }
}

