FLAMEGPU/FLAMEGPU2

DeviceMacroProperty AtomicAdd and AtomicSub

Opened this issue · 1 comments

DeviceMacroProperty has operator overloading for + and - which is incorrect within the API docs as it suggests that this atomically modifies the value (it does not). We should add support for atomic add and sub (sub should use add but negate the value to avoid type restrictions). Both should have return values. We should also update the API docs so they are correct and update the user docs to make it clear which operators modify the value (i.e. -= and += are atomic).

userguide will want add, sub added to the table of misc. atomic functions.