reuse command buffers flag
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
@@ -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);
|
||||
|
Reference in New Issue
Block a user