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.
  • Loading branch information
robquill committed Aug 27, 2024
1 parent 4712657 commit 3b69738
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 3b69738

Please sign in to comment.