Avoid recreating VkSurfaceKHR during normal Vulkan swapchain resize/out-of-date handling. Recreate the surface only when Vulkan reports surface loss or when the native window handle used to create the surface changes.
Avoid recreating VkSurfaceKHR during normal Vulkan swapchain resize/out-of-date handling. Recreate the surface only when Vulkan reports surface loss or when the native window handle used to create the surface changes.