pub struct Swapchain { /* private fields */ }Implementations§
Source§impl Swapchain
impl Swapchain
pub fn new( instance: &Instance, device: &Device, surface: &Surface, extent_hint: Extent2D, ) -> Result<Self, Error>
pub fn new_with_old( instance: &Instance, device: &Device, surface: &Surface, extent_hint: Extent2D, old_swapchain: SwapchainKHR, ) -> Result<Self, Error>
pub fn acquire_next_image( &self, semaphore: &Semaphore, ) -> Result<(u32, bool), Error>
pub fn present( &self, queue: Queue, image_index: u32, wait_semaphore: &Semaphore, ) -> Result<bool, Error>
pub fn format(&self) -> Format
pub fn color_space(&self) -> ColorSpaceKHR
pub fn extent(&self) -> Extent2D
pub fn images(&self) -> &[Image]
pub fn image_views(&self) -> &[ImageView]
pub fn destroy(&mut self, device: &Device)
Auto Trait Implementations§
impl Freeze for Swapchain
impl RefUnwindSafe for Swapchain
impl Send for Swapchain
impl Sync for Swapchain
impl Unpin for Swapchain
impl UnsafeUnpin 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