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 verticesYDown;
|
||||||
vks::Buffer indicesCCW;
|
vks::Buffer indicesCCW;
|
||||||
vks::Buffer indicesCW;
|
vks::Buffer indicesCW;
|
||||||
|
void destroy()
|
||||||
|
{
|
||||||
|
verticesYUp.destroy();
|
||||||
|
verticesYDown.destroy();
|
||||||
|
indicesCCW.destroy();
|
||||||
|
indicesCW.destroy();
|
||||||
|
}
|
||||||
} quad;
|
} quad;
|
||||||
|
|
||||||
VulkanExample() : VulkanExampleBase(ENABLE_VALIDATION)
|
VulkanExample() : VulkanExampleBase(ENABLE_VALIDATION)
|
||||||
|
|
@ -71,6 +78,7 @@ public:
|
||||||
vkDestroyDescriptorSetLayout(device, descriptorSetLayout, nullptr);
|
vkDestroyDescriptorSetLayout(device, descriptorSetLayout, nullptr);
|
||||||
textures.CW.destroy();
|
textures.CW.destroy();
|
||||||
textures.CCW.destroy();
|
textures.CCW.destroy();
|
||||||
|
quad.destroy();
|
||||||
}
|
}
|
||||||
|
|
||||||
void buildCommandBuffers()
|
void buildCommandBuffers()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue