mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-23 22:25:55 +00:00
Snapshot descriptor set Resource IDs when preparing initial states
* If we only copy the slot contents without converting Vk* handles to IDs then we run the risk that the resource will be deleted and re-allocated mid frame before we do that at serialise time. * Instead we fetch IDs immediately and serialise as IDs, then look up the handles on replay
This commit is contained in:
@@ -1328,8 +1328,11 @@ public:
|
||||
SDObject *last = current.data.children.back();
|
||||
last->type.name = name;
|
||||
|
||||
for(SDObject *obj : last->data.children)
|
||||
obj->type.name = name;
|
||||
if(last->type.basetype == SDBasic::Array)
|
||||
{
|
||||
for(SDObject *obj : last->data.children)
|
||||
obj->type.name = name;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user