Struct pilka_dyn::ash::extensions::khr::Swapchain[]

pub struct Swapchain { /* fields omitted */ }

Implementations

impl Swapchain

pub fn new<I, D>(instance: &I, device: &D) -> Swapchain where
    I: InstanceV1_0,
    D: DeviceV1_0

pub fn name() -> &'static CStr

pub unsafe fn destroy_swapchain(
    &self,
    swapchain: SwapchainKHR,
    allocation_callbacks: Option<&AllocationCallbacks>
)

pub unsafe fn acquire_next_image(
    &self,
    swapchain: SwapchainKHR,
    timeout: u64,
    semaphore: Semaphore,
    fence: Fence
) -> Result<(u32, bool), Result>

On success, returns the next image's index and whether the swapchain is suboptimal for the surface. https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/vkAcquireNextImageKHR.html

pub unsafe fn create_swapchain(
    &self,
    create_info: &SwapchainCreateInfoKHR,
    allocation_callbacks: Option<&AllocationCallbacks>
) -> Result<SwapchainKHR, Result>

pub unsafe fn queue_present(
    &self,
    queue: Queue,
    create_info: &PresentInfoKHR
) -> Result<bool, Result>

On success, returns whether the swapchain is suboptimal for the surface. https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/vkQueuePresentKHR.html

pub unsafe fn get_swapchain_images(
    &self,
    swapchain: SwapchainKHR
) -> Result<Vec<Image, Global>, Result>

pub fn fp(&self) -> &KhrSwapchainFn

pub fn device(&self) -> Device

Trait Implementations

impl Clone for Swapchain

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> 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.