vkFreeMemory(demo->device, demo->textures[i].mem);
vkDestroySampler(demo->device, demo->textures[i].sampler);
}
-#if 0
- demo->fpDestroySwapchainKHR(demo->device, demo->swapchain);
-#endif
vkDestroyImageView(demo->device, demo->depth.view);
vkDestroyImage(demo->device, demo->depth.image);
}
free(demo->buffers);
-#if 0
- free(demo->queue_props);
-
- vkDestroyCommandPool(demo->device, demo->cmd_pool);
- vkDestroyDevice(demo->device);
- if (demo->validate) {
- demo->dbgDestroyMsgCallback(demo->inst, demo->msg_callback);
- }
-#endif
-
// Second, re-perform the demo_prepare() function, which will re-create the
// swapchain: