SPV: Correct semantics of atomic-counter decrement.
The semantics differ between GLSL/HLSL and SPIR-V. Translate between these.
This commit is contained in:
parent
592e8f0441
commit
48d6e798bc
3 changed files with 80 additions and 71 deletions
|
|
@ -417,8 +417,8 @@ enum TOperator {
|
|||
EOpAtomicExchange,
|
||||
EOpAtomicCompSwap,
|
||||
|
||||
EOpAtomicCounterIncrement,
|
||||
EOpAtomicCounterDecrement,
|
||||
EOpAtomicCounterIncrement, // results in pre-increment value
|
||||
EOpAtomicCounterDecrement, // results in post-decrement value
|
||||
EOpAtomicCounter,
|
||||
EOpAtomicCounterAdd,
|
||||
EOpAtomicCounterSubtract,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue