Struct ash::extensions::Swapchain
source · pub struct Swapchain { /* private fields */ }
Implementations
sourceimpl Swapchain
impl Swapchain
pub fn new<I: InstanceV1_0, D: DeviceV1_0>(instance: &I, device: &D) -> Swapchain
pub fn name() -> &'static CStr
pub unsafe fn destroy_swapchain_khr(
&self,
swapchain: SwapchainKHR,
allocation_callbacks: Option<&AllocationCallbacks>
)
sourcepub unsafe fn acquire_next_image_khr(
&self,
swapchain: SwapchainKHR,
timeout: u64,
semaphore: Semaphore,
fence: Fence
) -> VkResult<(u32, bool)>
pub unsafe fn acquire_next_image_khr(
&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.
pub unsafe fn create_swapchain_khr(
&self,
create_info: &SwapchainCreateInfoKHR,
allocation_callbacks: Option<&AllocationCallbacks>
) -> VkResult<SwapchainKHR>
sourcepub unsafe fn queue_present_khr(
&self,
queue: Queue,
create_info: &PresentInfoKHR
) -> VkResult<bool>
pub unsafe fn queue_present_khr(
&self,
queue: Queue,
create_info: &PresentInfoKHR
) -> VkResult<bool>
On success, returns whether the swapchain is suboptimal for the surface.
pub unsafe fn get_swapchain_images_khr(
&self,
swapchain: SwapchainKHR
) -> VkResult<Vec<Image>>
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more