pub struct Swapchain { /* private fields */ }Implementations§
Source§impl Swapchain
impl Swapchain
pub unsafe fn create(device: &Device, surface: &Surface) -> Result<Self>
pub unsafe fn destroy(self, device: &Device)
pub fn handle(&self) -> SwapchainKHR
pub fn image_count(&self) -> u64
pub fn image(&self, image_index: u32) -> Image
pub fn image_view(&self, image_index: u32) -> ImageView
pub fn image_subresource_range(&self) -> ImageSubresourceRange
pub fn render_area(&self) -> Rect2D
Trait Implementations§
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