| 237 | } |
| 238 | |
| 239 | void cleanupSwapChain() { |
| 240 | for (auto framebuffer : swapChainFramebuffers) { |
| 241 | vkDestroyFramebuffer(device, framebuffer, nullptr); |
| 242 | } |
| 243 | |
| 244 | for (auto imageView : swapChainImageViews) { |
| 245 | vkDestroyImageView(device, imageView, nullptr); |
| 246 | } |
| 247 | |
| 248 | vkDestroySwapchainKHR(device, swapChain, nullptr); |
| 249 | } |
| 250 | |
| 251 | void cleanup() { |
| 252 | cleanupSwapChain(); |
nothing calls this directly
no outgoing calls
no test coverage detected