Resource cleanup
This commit is contained in:
parent
b64f83cc68
commit
072a174e6b
1 changed files with 8 additions and 0 deletions
|
|
@ -54,6 +54,13 @@ public:
|
|||
vks::Buffer verticesYDown;
|
||||
vks::Buffer indicesCCW;
|
||||
vks::Buffer indicesCW;
|
||||
void destroy()
|
||||
{
|
||||
verticesYUp.destroy();
|
||||
verticesYDown.destroy();
|
||||
indicesCCW.destroy();
|
||||
indicesCW.destroy();
|
||||
}
|
||||
} quad;
|
||||
|
||||
VulkanExample() : VulkanExampleBase(ENABLE_VALIDATION)
|
||||
|
|
@ -71,6 +78,7 @@ public:
|
|||
vkDestroyDescriptorSetLayout(device, descriptorSetLayout, nullptr);
|
||||
textures.CW.destroy();
|
||||
textures.CCW.destroy();
|
||||
quad.destroy();
|
||||
}
|
||||
|
||||
void buildCommandBuffers()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue