VKERROROUTOFDATEKHR
VK_ERROR_OUT_OF_DATE_KHR is a VkResult value returned by Vulkan operations that involve presentation or swapchain management, most commonly by vkQueuePresentKHR and vkAcquireNextImageKHR. It indicates that the swapchain is out of date and must be recreated before rendering can continue. This situation typically arises when the surface or window changes in a way that makes the current swapchain incompatible, such as a resize, a change in surface properties, or other alterations to the rendering surface. The error is defined by the VK_KHR_swapchain extension and corresponds to the value -1000001004.
Handling VK_ERROR_OUT_OF_DATE_KHR involves recreating the swapchain and any resources that depend on it, including image views
Related conditions include VK_SUBOPTIMAL_KHR, which indicates the swapchain can still be used but is not optimal
In practice, robust Vulkan applications check for VK_ERROR_OUT_OF_DATE_KHR (and VK_SUBOPTIMAL_KHR) after present or acquire calls and