#include <metal_stdlib> | |
using namespace metal; | |
int subgroupAny_cddda0() { | |
bool res = simd_any(true); | |
return select(0, 1, all((res == false))); | |
} | |
fragment void fragment_main(device int* tint_symbol [[buffer(0)]]) { | |
*(tint_symbol) = subgroupAny_cddda0(); | |
return; | |
} | |
kernel void compute_main(device int* tint_symbol_1 [[buffer(0)]]) { | |
*(tint_symbol_1) = subgroupAny_cddda0(); | |
return; | |
} | |