forked from Dynamitos/Seele
Implementing basic asset serialization
This commit is contained in:
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();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user