Implementing basic asset serialization

This commit is contained in:
Dynamitos committed 2023-02-13 14:56:13 +01:00
1 parent 9e1e4076f0
commit 48fa098546
82 files changed
+1834 -423

No files matched your search

@@ -166,7 +166,12 @@ void CmdBuffer::refreshFence()
void CmdBuffer::waitForCommand(uint32 timeout)
{
std::scoped_lock lock(handleLock);
manager->submitCommands();
if (state == State::InsideBegin)
{
// is already done
return;
}
fence->wait(timeout);
refreshFence();
}