VulkanRenderer: Improve transient command buffer usage

Allocate and reuse them between frames, by resetting the command pool
This commit is contained in:
SirLynix
2023-07-21 09:00:34 +02:00
parent ce2693114c
commit fbf4da3c4f
5 changed files with 25 additions and 32 deletions

View File

@@ -30,9 +30,10 @@ namespace Nz
{
FlushReleaseQueue();
m_graphicalCommandsBuffers.clear();
m_currentCommandBuffer = 0;
m_graphicalCommandBuffers.clear();
m_freeCommandBufferIndex = 0;
m_imageIndex = imageIndex;
m_commandPool.Reset();
m_uploadPool.Reset();
}
}