blob: 3b0d5f1a936e7c41e3a17014ec8a2197013403ab [file] [log] [blame]
#include <metal_stdlib>
using namespace metal;
struct tint_module_vars_struct {
device uint* prevent_dce;
};
uint subgroupExclusiveMul_dc51f8() {
uint res = simd_prefix_exclusive_product(1u);
return res;
}
fragment void fragment_main(device uint* prevent_dce [[buffer(0)]]) {
tint_module_vars_struct const tint_module_vars = tint_module_vars_struct{.prevent_dce=prevent_dce};
(*tint_module_vars.prevent_dce) = subgroupExclusiveMul_dc51f8();
}
kernel void compute_main(device uint* prevent_dce [[buffer(0)]]) {
tint_module_vars_struct const tint_module_vars = tint_module_vars_struct{.prevent_dce=prevent_dce};
(*tint_module_vars.prevent_dce) = subgroupExclusiveMul_dc51f8();
}