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

Method cleanupSwapChain

code/25_sampler.cpp:233–243  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected