How to run code before Vulkan surface destruction
Unsolved
General and Desktop
-
I'm trying to write a vulkan renderer without using the built in class, just QVulkanInstance to get the surface for the window. Getting the surface and setting up a swapchain works fine, but when I close the application I get a validation layer message saying that the surface is being destroyed before the swapchain. No matter what I do I can't destroy the swapchain before the surface. The widget destructor runs after the surface destruction, the embedded window destructor runs after the surface destructor, and close events don't run at all.
I'm not sure what to do, any help is greatly appreciated