Release ui overlay Vulkan resources
This commit is contained in:
parent
68692367e0
commit
a5e2ad091f
1 changed files with 4 additions and 0 deletions
|
|
@ -66,6 +66,10 @@ namespace vks
|
|||
UIOverlay::~UIOverlay()
|
||||
{
|
||||
vertexBuffer.destroy();
|
||||
indexBuffer.destroy();
|
||||
vkDestroyImageView(device->logicalDevice, fontView, nullptr);
|
||||
vkDestroyImage(device->logicalDevice, fontImage, nullptr);
|
||||
vkFreeMemory(device->logicalDevice, fontMemory, nullptr);
|
||||
vkDestroySampler(device->logicalDevice, sampler, nullptr);
|
||||
vkDestroyDescriptorSetLayout(device->logicalDevice, descriptorSetLayout, nullptr);
|
||||
vkDestroyDescriptorPool(device->logicalDevice, descriptorPool, nullptr);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue