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 atomicMin_c67a74() {
|
|
|
|
uint atomic_result = 0u;
|
2021-07-09 12:35:54 +00:00
|
|
|
sb_rw.InterlockedMin(0u, 1u, atomic_result);
|
2021-06-18 18:56:13 +00:00
|
|
|
uint res = atomic_result;
|
|
|
|
}
|
2021-06-18 18:56:13 +00:00
|
|
|
|
2021-06-18 18:56:13 +00:00
|
|
|
void fragment_main() {
|
|
|
|
atomicMin_c67a74();
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
[numthreads(1, 1, 1)]
|
|
|
|
void compute_main() {
|
|
|
|
atomicMin_c67a74();
|
|
|
|
return;
|
|
|
|
}
|