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

Method cleanupSwapChain

code/18_vertex_input.cpp:188–198  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

186 }
187
188 void cleanupSwapChain() {
189 for (auto framebuffer : swapChainFramebuffers) {
190 vkDestroyFramebuffer(device, framebuffer, nullptr);
191 }
192
193 for (auto imageView : swapChainImageViews) {
194 vkDestroyImageView(device, imageView, nullptr);
195 }
196
197 vkDestroySwapchainKHR(device, swapChain, nullptr);
198 }
199
200 void cleanup() {
201 cleanupSwapChain();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected