| 227 | } |
| 228 | |
| 229 | void cleanupSwapChain() { |
| 230 | for (auto framebuffer : swapChainFramebuffers) { |
| 231 | vkDestroyFramebuffer(device, framebuffer, nullptr); |
| 232 | } |
| 233 | |
| 234 | for (auto imageView : swapChainImageViews) { |
| 235 | vkDestroyImageView(device, imageView, nullptr); |
| 236 | } |
| 237 | |
| 238 | vkDestroySwapchainKHR(device, swapChain, nullptr); |
| 239 | } |
| 240 | |
| 241 | void cleanup() { |
| 242 | cleanupSwapChain(); |
nothing calls this directly
no outgoing calls
no test coverage detected