Skip to main content

SwapchainMut

Trait SwapchainMut 

Source
pub trait SwapchainMut: Swapchain + VkHandleMut {
    // Provided method
    fn acquire_next(
        &mut self,
        timeout: Option<u64>,
        completion: CompletionHandlerMut<'_>,
    ) -> Result<u32> { ... }
}

Provided Methods§

Source

fn acquire_next( &mut self, timeout: Option<u64>, completion: CompletionHandlerMut<'_>, ) -> Result<u32>

Retrieve the index of the next available presentation image

§Failures

On failure, this command returns

  • brvk::VK_ERROR_OUT_OF_HOST_MEMORY
  • brvk::VK_ERROR_OUT_OF_DEVICE_MEMORY
  • brvk::VK_ERROR_DEVICE_LOST
  • brvk::VK_ERROR_OUT_OF_DATE_KHR
  • brvk::VK_ERROR_SURFACE_LOST_KHR

Implementations on Foreign Types§

Source§

impl<'s, T> SwapchainMut for &'s mut T
where T: SwapchainMut + ?Sized,

Source§

impl<T> SwapchainMut for Box<T>
where T: SwapchainMut + ?Sized,

Source§

impl<T> SwapchainMut for ManuallyDrop<T>
where T: SwapchainMut,

Implementors§

Source§

impl<Device, Surface> SwapchainMut for SurfaceSwapchainObject<Device, Surface>
where Device: Device, Surface: VkHandle<Handle = VkSurfaceKHR>,