Destroy Vulkan resources (Refs #277)
This commit is contained in:
parent
89cc457ccc
commit
fc4e903725
2 changed files with 2 additions and 0 deletions
|
|
@ -147,6 +147,7 @@ public:
|
||||||
vkDestroyPipeline(device, compute.pipeline, nullptr);
|
vkDestroyPipeline(device, compute.pipeline, nullptr);
|
||||||
vkDestroyFence(device, compute.fence, nullptr);
|
vkDestroyFence(device, compute.fence, nullptr);
|
||||||
vkDestroyCommandPool(device, compute.commandPool, nullptr);
|
vkDestroyCommandPool(device, compute.commandPool, nullptr);
|
||||||
|
vkDestroySemaphore(device, compute.semaphore, nullptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
void reBuildCommandBuffers()
|
void reBuildCommandBuffers()
|
||||||
|
|
|
||||||
|
|
@ -106,6 +106,7 @@ public:
|
||||||
~VulkanExample()
|
~VulkanExample()
|
||||||
{
|
{
|
||||||
// Graphics
|
// Graphics
|
||||||
|
graphics.uniformBuffer.destroy();
|
||||||
vkDestroyPipeline(device, graphics.pipeline, nullptr);
|
vkDestroyPipeline(device, graphics.pipeline, nullptr);
|
||||||
vkDestroyPipelineLayout(device, graphics.pipelineLayout, nullptr);
|
vkDestroyPipelineLayout(device, graphics.pipelineLayout, nullptr);
|
||||||
vkDestroyDescriptorSetLayout(device, graphics.descriptorSetLayout, nullptr);
|
vkDestroyDescriptorSetLayout(device, graphics.descriptorSetLayout, nullptr);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue