[][src]Struct vulkayes_core::swapchain::Swapchain

pub struct Swapchain { /* fields omitted */ }

Implementations

impl Swapchain[src]

pub fn new(
    device: Vrc<Device>,
    surface: Surface,
    create_info: SwapchainCreateInfo<impl AsRef<[u32]>>,
    host_memory_allocator: HostMemoryAllocator
) -> Result<SwapchainData, SwapchainError>
[src]

pub fn recreate(
    &self,
    create_info: SwapchainCreateInfo<impl AsRef<[u32]>>,
    host_memory_allocator: HostMemoryAllocator
) -> Result<SwapchainData, SwapchainError>
[src]

pub unsafe fn from_create_info(
    device: Vrc<Device>,
    surface: Vrc<Surface>,
    create_info: impl Deref<Target = SwapchainCreateInfoKHR>,
    host_memory_allocator: HostMemoryAllocator
) -> Result<SwapchainData, SwapchainError>
[src]

Creates a new Swapchain from an existing SwapchainCreateInfoKHR.

Safety

See https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/vkCreateSwapchainKHR.html.

pub unsafe fn present(
    &self,
    queue: &Queue,
    info: impl Deref<Target = PresentInfoKHR>
) -> QueuePresentResult
[src]

pub fn acquire_next(
    &self,
    timeout: WaitTimeout,
    synchronization: AcquireSynchronization<'_>
) -> AcquireResult
[src]

pub const fn device(&self) -> &Vrc<Device>[src]

pub const fn surface(&self) -> &Vrc<Surface>[src]

pub const fn loader(&self) -> &Swapchain[src]

pub fn retired(&self) -> bool[src]

Methods from Deref<Target = Vutex<SwapchainKHR>>

pub fn lock(&self) -> Result<VutexGuard<'_, T>, BorrowMutError>[src]

Trait Implementations

impl Borrow<Vutex<SwapchainKHR>> for Swapchain[src]

impl Debug for Swapchain[src]

impl Deref for Swapchain[src]

type Target = Vutex<SwapchainKHR>

The resulting type after dereferencing.

impl Drop for Swapchain[src]

impl Eq for Swapchain[src]

impl HasSynchronizedHandle<SwapchainKHR> for Swapchain[src]

impl Hash for Swapchain[src]

impl Ord for Swapchain[src]

impl PartialEq<Swapchain> for Swapchain[src]

impl PartialOrd<Swapchain> for Swapchain[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> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[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.