[][src]Struct bedrock::Swapchain

pub struct Swapchain(_);

Opaque handle to a swapchain object

Methods

impl Swapchain[src]

Following methods are enabled with [feature = "Implements" and feature = "VK_KHR_swapchain"]

pub fn get_images(&self) -> Result<Vec<Image>>[src]

Obtain the array of presentable images associated with a swapchain

Failures

On failure, this command returns

  • VK_ERROR_OUT_OF_HOST_MEMORY
  • VK_ERROR_OUT_OF_DEVICE_MEMORY

impl Swapchain[src]

pub fn format(&self) -> VkFormat[src]

pub fn size(&self) -> &Extent3D[src]

impl Swapchain[src]

pub fn acquire_next(
    &self,
    timeout: Option<u64>,
    completion: CompletionHandler
) -> Result<u32>
[src]

Retrieve the index of the next available presentation image

Failures

On failure, this command returns

  • VK_ERROR_OUT_OF_HOST_MEMORY
  • VK_ERROR_OUT_OF_DEVICE_MEMORY
  • VK_ERROR_DEVICE_LOST
  • VK_ERROR_OUT_OF_DATE_KHR
  • VK_ERROR_SURFACE_LOST_KHR

pub fn queue_present(
    &self,
    queue: &Queue,
    index: u32,
    wait_semaphores: &[&Semaphore]
) -> Result<()>
[src]

Queue an image for presentation

Failures

On failure, this command returns

  • VK_ERROR_OUT_OF_HOST_MEMORY
  • VK_ERROR_OUT_OF_DEVICE_MEMORY
  • VK_ERROR_DEVICE_LOST
  • VK_ERROR_OUT_OF_DATE_KHR
  • VK_ERROR_SURFACE_LOST_KHR

Trait Implementations

impl Clone for Swapchain[src]

impl DeviceChild for Swapchain[src]

impl VkHandle for Swapchain[src]

type Handle = VkSwapchainKHR

Auto Trait Implementations

impl !RefUnwindSafe for Swapchain

impl !Send for Swapchain

impl !Sync for Swapchain

impl Unpin for Swapchain

impl !UnwindSafe for Swapchain

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.