pub struct Swapchain {
pub info: SwapchainInfo,
/* private fields */
}Fields
info: SwapchainInfoImplementations
sourceimpl Swapchain
impl Swapchain
pub fn new(
device: &Arc<Device>,
surface: Surface,
info: SwapchainInfo
) -> Result<Self, DriverError>
pub fn acquire_next_image(&mut self) -> Result<SwapchainImage, SwapchainError>
pub fn present_image(&mut self, image: SwapchainImage)
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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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