MCPcopy Create free account
hub / github.com/Overv/VulkanTutorial / cleanupSwapChain

Method cleanupSwapChain

code/30_multisampling.cpp:265–283  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

263 }
264
265 void cleanupSwapChain() {
266 vkDestroyImageView(device, depthImageView, nullptr);
267 vkDestroyImage(device, depthImage, nullptr);
268 vkFreeMemory(device, depthImageMemory, nullptr);
269
270 vkDestroyImageView(device, colorImageView, nullptr);
271 vkDestroyImage(device, colorImage, nullptr);
272 vkFreeMemory(device, colorImageMemory, nullptr);
273
274 for (auto framebuffer : swapChainFramebuffers) {
275 vkDestroyFramebuffer(device, framebuffer, nullptr);
276 }
277
278 for (auto imageView : swapChainImageViews) {
279 vkDestroyImageView(device, imageView, nullptr);
280 }
281
282 vkDestroySwapchainKHR(device, swapChain, nullptr);
283 }
284
285 void cleanup() {
286 cleanupSwapChain();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected