blob: 0cd5b5dda66ebee260fe6273a902a5e2a9407844 [file] [log] [blame]
#include <metal_stdlib>
using namespace metal;
uint4 subgroupExclusiveAdd_ec300f() {
uint4 res = simd_prefix_exclusive_sum(uint4(1u));
return res;
}
fragment void fragment_main(device uint4* tint_symbol [[buffer(0)]]) {
*(tint_symbol) = subgroupExclusiveAdd_ec300f();
return;
}
kernel void compute_main(device uint4* tint_symbol_1 [[buffer(0)]]) {
*(tint_symbol_1) = subgroupExclusiveAdd_ec300f();
return;
}