#include <metal_stdlib>

using namespace metal;
half3 subgroupAdd_0dd12a() {
  half3 arg_0 = half3(1.0h);
  half3 res = simd_sum(arg_0);
  return res;
}

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

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

