Skip to main content

SwapchainImageExt

Trait SwapchainImageExt 

Source
pub trait SwapchainImageExt: Swapchain {
    // Required methods
    fn format(&self) -> VkFormat;
    fn extent(&self) -> VkExtent2D;

    // Provided method
    fn images_alloc(&self) -> Result<Vec<SwapchainImage<&Self>>> { ... }
}

Required Methods§

Source

fn format(&self) -> VkFormat

Source

fn extent(&self) -> VkExtent2D

Provided Methods§

Source

fn images_alloc(&self) -> Result<Vec<SwapchainImage<&Self>>>

Obtain the array of presentable images associated with a swapchain

§Failures

On failure, this command returns

  • brvk::VK_ERROR_OUT_OF_HOST_MEMORY
  • brvk::VK_ERROR_OUT_OF_DEVICE_MEMORY

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<'s, T> SwapchainImageExt for &'s T

Source§

impl<'s, T> SwapchainImageExt for &'s mut T

Source§

impl<T> SwapchainImageExt for Arc<T>

Source§

impl<T> SwapchainImageExt for Box<T>

Source§

impl<T> SwapchainImageExt for ManuallyDrop<T>

Source§

impl<T> SwapchainImageExt for Rc<T>

Implementors§

Source§

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