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

Method cleanupSwapChain

code/31_compute_shader.cpp:232–242  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected