#include <metal_stdlib>

using namespace metal;
half3 subgroupBroadcast_41e5d7() {
  half3 res = simd_broadcast(half3(1.0h),ushort(1u));
  return res;
}

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

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

