2021-06-18 18:56:13 +00:00
|
|
|
RWByteAddressBuffer sb_rw : register(u0, space0);
|
2021-06-18 18:56:13 +00:00
|
|
|
|
2021-06-18 18:56:13 +00:00
|
|
|
void atomicMax_92aa72() {
|
|
|
|
int atomic_result = 0;
|
2021-07-09 12:35:54 +00:00
|
|
|
sb_rw.InterlockedMax(0u, 1, atomic_result);
|
2021-06-18 18:56:13 +00:00
|
|
|
int res = atomic_result;
|
|
|
|
}
|
2021-06-18 18:56:13 +00:00
|
|
|
|
2021-06-18 18:56:13 +00:00
|
|
|
void fragment_main() {
|
|
|
|
atomicMax_92aa72();
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
[numthreads(1, 1, 1)]
|
|
|
|
void compute_main() {
|
|
|
|
atomicMax_92aa72();
|
|
|
|
return;
|
|
|
|
}
|