Skip to content

Commit

Permalink
Enable command buffer reset on the command pool
Browse files Browse the repository at this point in the history
Fixes lots of Vulkan Validation errors.

Signed-off-by: Robert Quill <robert.quill@imgtec.com>
  • Loading branch information
robquill committed Aug 27, 2024
1 parent 4712657 commit 4ebaf3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Sequence.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<vk::CommandPool>();
this->mDevice->createCommandPool(
Expand Down

0 comments on commit 4ebaf3f

Please sign in to comment.