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

Method cleanupSwapChain

code/19_vertex_buffer.cpp:193–203  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

191 }
192
193 void cleanupSwapChain() {
194 for (auto framebuffer : swapChainFramebuffers) {
195 vkDestroyFramebuffer(device, framebuffer, nullptr);
196 }
197
198 for (auto imageView : swapChainImageViews) {
199 vkDestroyImageView(device, imageView, nullptr);
200 }
201
202 vkDestroySwapchainKHR(device, swapChain, nullptr);
203 }
204
205 void cleanup() {
206 cleanupSwapChain();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected