reuse command buffers flag

This commit is contained in:
Greg Wells
2025-07-02 09:12:33 -04:00
parent 9c154c1eeb
commit a74dd63786
21 changed files with 51 additions and 11 deletions

View File

@@ -78,3 +78,7 @@ void VkEndTransferOperation(VkCommandBuffer transferBuffer, VkCommandPool pool,
vkQueueWaitIdle(syncQueue);
vkFreeCommandBuffers(device, pool, 1, &transferBuffer);
}
void destroyVulkanCommandBuffer(gnCommandBufferHandle commandBuffer) {
vkFreeCommandBuffers(commandBuffer->commandPool->device->outputDevice->device, commandBuffer->commandPool->commandPool->commandPool, 1, &commandBuffer->commandBuffer->buffer);
}

View File

@@ -19,3 +19,4 @@ gnReturnCode allocateCommandBuffers(gnCommandBufferHandle* commandBuffers, uint3
gnReturnCode beginCommandBuffer(gnCommandBufferHandle commandBuffer);
void resetCommandBuffer(gnCommandBufferHandle commandBuffer);
gnReturnCode endCommandBuffer(gnCommandBufferHandle commandBuffer);
void destroyVulkanCommandBuffer(gnCommandBufferHandle commandBuffer);