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

Method cleanupSwapChain

code/26_texture_mapping.cpp:239–249  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

237 }
238
239 void cleanupSwapChain() {
240 for (auto framebuffer : swapChainFramebuffers) {
241 vkDestroyFramebuffer(device, framebuffer, nullptr);
242 }
243
244 for (auto imageView : swapChainImageViews) {
245 vkDestroyImageView(device, imageView, nullptr);
246 }
247
248 vkDestroySwapchainKHR(device, swapChain, nullptr);
249 }
250
251 void cleanup() {
252 cleanupSwapChain();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected