Minor fixes

This commit is contained in:
Jérôme Leclercq
2021-05-02 13:58:56 +02:00
parent 55c2dd8485
commit 990193ebb4
3 changed files with 4 additions and 6 deletions

View File

@@ -18,7 +18,7 @@ namespace Nz
{
Vk::AutoCommandBuffer& commandBuffer = commandBuffers.emplace_back(m_commandPool.AllocateCommandBuffer(VK_COMMAND_BUFFER_LEVEL_PRIMARY));
if (!commandBuffer->Begin())
if (!commandBuffer->Begin(VK_COMMAND_BUFFER_USAGE_SIMULTANEOUS_USE_BIT))
throw std::runtime_error("failed to begin command buffer: " + TranslateVulkanError(commandBuffer->GetLastErrorCode()));
VulkanCommandBufferBuilder builder(commandBuffer.Get(), imageIndex);