2021-07-09 16:50:14 +00:00
|
|
|
void atomicStore_1(RWByteAddressBuffer buffer, uint offset, uint value) {
|
|
|
|
uint ignored;
|
|
|
|
buffer.InterlockedExchange(offset, value, ignored);
|
|
|
|
}
|
|
|
|
|
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 atomicStore_cdc29e() {
|
2021-07-09 16:50:14 +00:00
|
|
|
atomicStore_1(sb_rw, 0u, 1u);
|
2021-06-18 18:56:13 +00:00
|
|
|
}
|
2021-06-18 18:56:13 +00:00
|
|
|
|
2021-06-18 18:56:13 +00:00
|
|
|
void fragment_main() {
|
|
|
|
atomicStore_cdc29e();
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
[numthreads(1, 1, 1)]
|
|
|
|
void compute_main() {
|
|
|
|
atomicStore_cdc29e();
|
|
|
|
return;
|
|
|
|
}
|