blob: 6ae98c522b60a1b92825d8d932fbbb8091f3bad9 [file] [log] [blame]
RWByteAddressBuffer sb_rw : register(u0, space0);
int tint_atomicMax(RWByteAddressBuffer buffer, uint offset, int value) {
int original_value = 0;
buffer.InterlockedMax(offset, value, original_value);
return original_value;
}
void atomicMax_92aa72() {
int arg_1 = 0;
int res = 0;
arg_1 = 1;
const int x_20 = arg_1;
const int x_13 = tint_atomicMax(sb_rw, 0u, x_20);
res = x_13;
return;
}
void fragment_main_1() {
atomicMax_92aa72();
return;
}
void fragment_main() {
fragment_main_1();
return;
}
void compute_main_1() {
atomicMax_92aa72();
return;
}
[numthreads(1, 1, 1)]
void compute_main() {
compute_main_1();
return;
}