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:
baldurk
2019-05-14 17:13:22 +01:00
parent 0ae245c4a8
commit 8e2b608975
15 changed files with 129 additions and 49 deletions
+5 -2
View File
@@ -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;
}
}
}