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

Method cleanupSwapChain

code/21_index_buffer.cpp:201–211  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

199 }
200
201 void cleanupSwapChain() {
202 for (auto framebuffer : swapChainFramebuffers) {
203 vkDestroyFramebuffer(device, framebuffer, nullptr);
204 }
205
206 for (auto imageView : swapChainImageViews) {
207 vkDestroyImageView(device, imageView, nullptr);
208 }
209
210 vkDestroySwapchainKHR(device, swapChain, nullptr);
211 }
212
213 void cleanup() {
214 cleanupSwapChain();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected