Struct pilka_lib::ash::extensions::khr::Swapchain [−]
pub struct Swapchain { /* fields omitted */ }
Implementations
impl Swapchain
impl Swapchain
pub unsafe fn destroy_swapchain(
&self,
swapchain: SwapchainKHR,
allocation_callbacks: Option<&AllocationCallbacks>
)
pub unsafe fn destroy_swapchain(
&self,
swapchain: SwapchainKHR,
allocation_callbacks: Option<&AllocationCallbacks>
)
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 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>
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 unsafe fn get_swapchain_images(
&self,
swapchain: SwapchainKHR
) -> Result<Vec<Image, Global>, Result>
pub fn fp(&self) -> &KhrSwapchainFn
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Swapchain
impl UnwindSafe for Swapchain
Blanket Implementations
Mutably borrows from an owned value. Read more