#include <metal_stdlib>

using namespace metal;
float quadBroadcast_960c6b() {
  float arg_0 = 1.0f;
  float res = quad_broadcast(arg_0,1u);
  return res;
}

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

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

