Skip to main content

Swapchain

Trait Swapchain 

Source
pub trait Swapchain: VkHandle<Handle = VkSwapchainKHR> + DeviceChild {
    // Provided methods
    fn image_count(&self) -> Result<u32> { ... }
    fn images(
        &self,
        sink: &mut [MaybeUninit<VkImage>],
    ) -> Result<ArrayQueryResult<u32>> { ... }
}

Provided Methods§

Source

fn image_count(&self) -> Result<u32>

Obtain a count of the array of presentable images associated with a swapchain

§Failures

On failure, this command returns

Source

fn images( &self, sink: &mut [MaybeUninit<VkImage>], ) -> Result<ArrayQueryResult<u32>>

Obtain the array of presentable images associated with a swapchain

§Failures

On failure, this command returns

Implementations on Foreign Types§

Source§

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

Source§

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

Source§

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

Source§

impl<T> Swapchain for Rc<T>
where T: Swapchain + ?Sized,

Source§

impl<T> Swapchain for Arc<T>
where T: Swapchain + ?Sized,

Source§

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

Implementors§

Source§

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