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

pub struct Swapchain { /* fields omitted */ }

Methods

impl Swapchain[src]

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

pub fn name() -> &'static CStr[src]

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

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

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>
) -> VkResult<SwapchainKHR>
[src]

pub unsafe fn queue_present(
    &self,
    queue: Queue,
    create_info: &PresentInfoKHR
) -> VkResult<bool>
[src]

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
) -> VkResult<Vec<Image>>
[src]

pub fn fp(&self) -> &KhrSwapchainFn[src]

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

Trait Implementations

impl Clone for Swapchain[src]

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.