mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-21 05:05:44 +00:00
Argument values come before function constant values
* We start counting value IDs for value-less first instructions (like calls) starting just from the constants, not including arguments
This commit is contained in:
@@ -928,8 +928,7 @@ bytebuf ProgramEditor::EncodeProgram()
|
||||
|
||||
bool needMetaAttach = !f->attachedMeta.empty();
|
||||
|
||||
uint32_t lastValidInstId =
|
||||
uint32_t(accum.firstFuncConst + accum.numFuncConsts + f->args.size()) - 1;
|
||||
uint32_t lastValidInstId = uint32_t(accum.firstFuncConst + accum.numFuncConsts) - 1;
|
||||
|
||||
for(const Instruction *inst : f->instructions)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user