[][src]Struct rafx_api::vulkan::RafxSwapchainVulkan

pub struct RafxSwapchainVulkan { /* fields omitted */ }

Represents a vulkan swapchain that can be rebuilt as needed

Implementations

impl RafxSwapchainVulkan[src]

pub fn new(
    device_context: &RafxDeviceContextVulkan,
    raw_window_handle: &dyn HasRawWindowHandle,
    swapchain_def: &RafxSwapchainDef
) -> RafxResult<RafxSwapchainVulkan>
[src]

pub fn rebuild(&mut self, swapchain_def: &RafxSwapchainDef) -> RafxResult<()>[src]

pub fn swapchain_def(&self) -> &RafxSwapchainDef[src]

pub fn image_count(&self) -> usize[src]

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

pub fn acquire_next_image_fence(
    &mut self,
    fence: &RafxFenceVulkan
) -> RafxResult<RafxSwapchainImage>
[src]

pub fn acquire_next_image_semaphore(
    &mut self,
    semaphore: &RafxSemaphoreVulkan
) -> RafxResult<RafxSwapchainImage>
[src]

Trait Implementations

impl Drop for RafxSwapchainVulkan[src]

Auto Trait Implementations

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> Downcast for T where
    T: Any

impl<T> DowncastSync for T where
    T: Send + Sync + Any

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

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

impl<T> Resource for T where
    T: Downcast + Send + Sync
[src]

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.