[−][src]Struct ash::extensions::khr::Swapchain
Methods
impl Swapchain
[src]
pub fn new<I: InstanceV1_0, D: DeviceV1_0>(
instance: &I,
device: &D
) -> Swapchain
[src]
instance: &I,
device: &D
) -> Swapchain
pub fn name() -> &'static CStr
[src]
pub unsafe fn destroy_swapchain(
&self,
swapchain: SwapchainKHR,
allocation_callbacks: Option<&AllocationCallbacks>
)
[src]
&self,
swapchain: SwapchainKHR,
allocation_callbacks: Option<&AllocationCallbacks>
)
pub unsafe fn acquire_next_image(
&self,
swapchain: SwapchainKHR,
timeout: u64,
semaphore: Semaphore,
fence: Fence
) -> VkResult<(u32, bool)>
[src]
&self,
swapchain: SwapchainKHR,
timeout: u64,
semaphore: Semaphore,
fence: Fence
) -> VkResult<(u32, bool)>
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]
&self,
create_info: &SwapchainCreateInfoKHR,
allocation_callbacks: Option<&AllocationCallbacks>
) -> VkResult<SwapchainKHR>
pub unsafe fn queue_present(
&self,
queue: Queue,
create_info: &PresentInfoKHR
) -> VkResult<bool>
[src]
&self,
queue: Queue,
create_info: &PresentInfoKHR
) -> VkResult<bool>
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]
&self,
swapchain: SwapchainKHR
) -> VkResult<Vec<Image>>
pub fn fp(&self) -> &KhrSwapchainFn
[src]
pub fn device(&self) -> Device
[src]
Trait Implementations
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,