Switch command buffers to be one-time-submittable (#885)

This commit is contained in:
Dzmitry Malyshau 2019-07-04 20:15:59 -04:00 committed by Magnus Norddahl
parent b66b4ae0ec
commit 3467e0edcf

View file

@ -551,7 +551,7 @@ inline void VulkanCommandBuffer::begin()
{
VkCommandBufferBeginInfo beginInfo = {};
beginInfo.sType = VK_STRUCTURE_TYPE_COMMAND_BUFFER_BEGIN_INFO;
beginInfo.flags = VK_COMMAND_BUFFER_USAGE_SIMULTANEOUS_USE_BIT;
beginInfo.flags = VK_COMMAND_BUFFER_USAGE_ONE_TIME_SUBMIT_BIT;
beginInfo.pInheritanceInfo = nullptr;
VkResult result = vkBeginCommandBuffer(buffer, &beginInfo);