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

using namespace metal;

struct main0_out
{
    float4 out_var_SV_TARGET [[color(0)]];
};

struct main0_in
{
    float2 in_var_TEXCOORD0 [[user(locn0)]];
    float4 in_var_COLOR0 [[user(locn1)]];
};

fragment main0_out main0(main0_in in [[stage_in]], texture2d<float> diffuse [[texture(0)]], sampler smp [[sampler(0)]])
{
    main0_out out = {};
    out.out_var_SV_TARGET = diffuse.sample(smp, in.in_var_TEXCOORD0) * in.in_var_COLOR0;
    return out;
}

