mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-26 08:26:50 +00:00
Ensure names are added at the end of name section in SPIR-V
* The iterator ++ will skip past nops but this could overrun into subsequent sections if they contain only nops (ie. are empty)
This commit is contained in:
@@ -272,6 +272,9 @@ void Editor::SetName(Id id, const rdcstr &name)
|
||||
break;
|
||||
}
|
||||
|
||||
if(End(Section::DebugNames) < it)
|
||||
it = End(Section::DebugNames);
|
||||
|
||||
InsertOperation(op, it.offs());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user