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

Method cleanupSwapChain

code/23_descriptor_sets.cpp:222–232  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

220 }
221
222 void cleanupSwapChain() {
223 for (auto framebuffer : swapChainFramebuffers) {
224 vkDestroyFramebuffer(device, framebuffer, nullptr);
225 }
226
227 for (auto imageView : swapChainImageViews) {
228 vkDestroyImageView(device, imageView, nullptr);
229 }
230
231 vkDestroySwapchainKHR(device, swapChain, nullptr);
232 }
233
234 void cleanup() {
235 cleanupSwapChain();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected