logo
pub fn wait_for_present<W>(
    swapchain: Arc<Swapchain<W>>,
    present_id: u64,
    timeout: Option<Duration>
) -> Result<bool, PresentWaitError>
Expand description

Wait for an image to be presented to the user. Must be used with a present_id given to present_with_id.

Returns a bool to represent if the presentation was suboptimal. In this case the swapchain is still usable, but the swapchain should be recreated as the Surface’s properties no longer match the swapchain.