Destroy Vulkan resources (Refs #277)

This commit is contained in:
saschawillems 2017-02-07 20:49:22 +01:00
parent 89cc457ccc
commit fc4e903725
2 changed files with 2 additions and 0 deletions

View file

@ -147,6 +147,7 @@ public:
vkDestroyPipeline(device, compute.pipeline, nullptr);
vkDestroyFence(device, compute.fence, nullptr);
vkDestroyCommandPool(device, compute.commandPool, nullptr);
vkDestroySemaphore(device, compute.semaphore, nullptr);
}
void reBuildCommandBuffers()

View file

@ -106,6 +106,7 @@ public:
~VulkanExample()
{
// Graphics
graphics.uniformBuffer.destroy();
vkDestroyPipeline(device, graphics.pipeline, nullptr);
vkDestroyPipelineLayout(device, graphics.pipelineLayout, nullptr);
vkDestroyDescriptorSetLayout(device, graphics.descriptorSetLayout, nullptr);