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

Method cleanupSwapChain

code/24_texture_image.cpp:229–239  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

227 }
228
229 void cleanupSwapChain() {
230 for (auto framebuffer : swapChainFramebuffers) {
231 vkDestroyFramebuffer(device, framebuffer, nullptr);
232 }
233
234 for (auto imageView : swapChainImageViews) {
235 vkDestroyImageView(device, imageView, nullptr);
236 }
237
238 vkDestroySwapchainKHR(device, swapChain, nullptr);
239 }
240
241 void cleanup() {
242 cleanupSwapChain();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected