blob: b698dd12814cbc6c70d11414278766f88693f7f1 [file] [log] [blame]
#include <metal_stdlib>
using namespace metal;
struct tint_module_vars_struct {
device float* prevent_dce;
};
float subgroupShuffleXor_1d36b6() {
float res = simd_shuffle_xor(1.0f, 1u);
return res;
}
fragment void fragment_main(device float* 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) = subgroupShuffleXor_1d36b6();
}
kernel void compute_main(device float* 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) = subgroupShuffleXor_1d36b6();
}