#include <metal_stdlib>

using namespace metal;
half4 quadBroadcast_e7c301() {
  half4 res = quad_broadcast(half4(1.0h),1u);
  return res;
}

fragment void fragment_main(device half4* tint_symbol [[buffer(0)]]) {
  *(tint_symbol) = quadBroadcast_e7c301();
  return;
}

kernel void compute_main(device half4* tint_symbol_1 [[buffer(0)]]) {
  *(tint_symbol_1) = quadBroadcast_e7c301();
  return;
}

