| // |
| // fragment_main |
| // |
| #include <metal_stdlib> |
| |
| using namespace metal; |
| float2 subgroupAdd_dcf73f() { |
| float2 arg_0 = float2(1.0f); |
| float2 res = simd_sum(arg_0); |
| return res; |
| } |
| |
| fragment void fragment_main(device float2* tint_symbol [[buffer(0)]]) { |
| *(tint_symbol) = subgroupAdd_dcf73f(); |
| return; |
| } |
| |
| // |
| // compute_main |
| // |
| #include <metal_stdlib> |
| |
| using namespace metal; |
| float2 subgroupAdd_dcf73f() { |
| float2 arg_0 = float2(1.0f); |
| float2 res = simd_sum(arg_0); |
| return res; |
| } |
| |
| kernel void compute_main(device float2* tint_symbol [[buffer(0)]]) { |
| *(tint_symbol) = subgroupAdd_dcf73f(); |
| return; |
| } |
| |