From 4ebaf3fb3ea8feff8eb9c2cb5734afdf49d29bfa Mon Sep 17 00:00:00 2001 From: Robert Quill Date: Tue, 27 Aug 2024 15:38:32 +0100 Subject: [PATCH] Enable command buffer reset on the command pool Fixes lots of Vulkan Validation errors. Signed-off-by: Robert Quill --- src/Sequence.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Sequence.cpp b/src/Sequence.cpp index d5d127ff..9a08d11a 100644 --- a/src/Sequence.cpp +++ b/src/Sequence.cpp @@ -312,7 +312,7 @@ Sequence::createCommandPool() this->mFreeCommandPool = true; - vk::CommandPoolCreateInfo commandPoolInfo(vk::CommandPoolCreateFlags(), + vk::CommandPoolCreateInfo commandPoolInfo(vk::CommandPoolCreateFlagBits::eResetCommandBuffer, this->mQueueIndex); this->mCommandPool = std::make_shared(); this->mDevice->createCommandPool(