pub struct Swapchain {
pub image_format: Format,
pub extent: Extent2D,
/* private fields */
}Fields§
§image_format: Format§extent: Extent2DImplementations§
Source§impl Swapchain
impl Swapchain
Sourcepub fn get_images(&self) -> Result<Vec<Image>>
pub fn get_images(&self) -> Result<Vec<Image>>
Retrieve the images currently owned by the swapchain.
Sourcepub fn destroy_image_views(&self) -> Result<()>
pub fn destroy_image_views(&self) -> Result<()>
Destroy any cached image views created for the swapchain and clear the cache.
Sourcepub fn get_image_views(&self) -> Result<Vec<ImageView>>
pub fn get_image_views(&self) -> Result<Vec<ImageView>>
Create (or return cached) image views for each swapchain image.
The created views are cached for later destruction via destroy_image_views.
Trait Implementations§
Source§impl AsRef<SwapchainKHR> for Swapchain
impl AsRef<SwapchainKHR> for Swapchain
Source§fn as_ref(&self) -> &SwapchainKHR
fn as_ref(&self) -> &SwapchainKHR
Converts this type into a shared reference of the (usually inferred) input type.
Auto Trait Implementations§
impl !Freeze for Swapchain
impl !RefUnwindSafe for Swapchain
impl Send for Swapchain
impl Sync for Swapchain
impl Unpin for Swapchain
impl !UnwindSafe for Swapchain
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more