mirror of
https://github.com/bailwillharr/engine.git
synced 2024-09-21 04:51:18 +00:00
reset transient command pools before any rendering
This commit is contained in:
parent
938633d944
commit
424d22cf69
@ -548,6 +548,12 @@ namespace engine {
|
|||||||
{
|
{
|
||||||
VkResult res;
|
VkResult res;
|
||||||
|
|
||||||
|
if (pimpl->FRAMECOUNT == 0) {
|
||||||
|
// perform clean-up before any rendering
|
||||||
|
vkResetCommandPool(pimpl->device.device, pimpl->transferCommandPool, VK_COMMAND_POOL_RESET_RELEASE_RESOURCES_BIT);
|
||||||
|
vkResetCommandPool(pimpl->device.device, pimpl->graphicsCommandPool, VK_COMMAND_POOL_RESET_RELEASE_RESOURCES_BIT);
|
||||||
|
}
|
||||||
|
|
||||||
const uint32_t currentFrameIndex = pimpl->FRAMECOUNT % FRAMES_IN_FLIGHT;
|
const uint32_t currentFrameIndex = pimpl->FRAMECOUNT % FRAMES_IN_FLIGHT;
|
||||||
const FrameData frameData = pimpl->frameData[currentFrameIndex];
|
const FrameData frameData = pimpl->frameData[currentFrameIndex];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user