#include <metal_stdlib>

using namespace metal;
half2 subgroupExclusiveAdd_01de08() {
  half2 arg_0 = half2(1.0h);
  half2 res = simd_prefix_exclusive_sum(arg_0);
  return res;
}

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

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

