John Kessenich | 0d0c6d3 | 2017-07-23 16:08:26 -0600 | [diff] [blame] | 1 | #version 460 core |
2 | |||||
3 | layout(binding = 0) uniform atomic_uint aui; | ||||
4 | uint ui; | ||||
5 | |||||
6 | void main() | ||||
7 | { | ||||
8 | atomicCounterAdd(aui, ui); | ||||
9 | atomicCounterSubtract(aui, ui); | ||||
10 | atomicCounterMin(aui, ui); | ||||
11 | atomicCounterMax(aui, ui); | ||||
12 | atomicCounterAnd(aui, ui); | ||||
13 | atomicCounterOr(aui, ui); | ||||
14 | atomicCounterXor(aui, ui); | ||||
15 | atomicCounterExchange(aui, ui); | ||||
16 | atomicCounterCompSwap(aui, ui, ui); | ||||
17 | } |