mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
imm_atomic_consume needs to prefix decrement
This commit is contained in:
@@ -1858,7 +1858,7 @@ State State::GetNext(GlobalState &global, State quad[4]) const
|
||||
|
||||
case OPCODE_IMM_ATOMIC_CONSUME:
|
||||
{
|
||||
uint32_t count = global.uavs[srcOpers[0].value.u.x].hiddenCounter--;
|
||||
uint32_t count = --global.uavs[srcOpers[0].value.u.x].hiddenCounter;
|
||||
s.SetDst(op.operands[0], op, ShaderVariable("", count, count, count, count));
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user