pub struct Swapchain<P> where
P: SharedPointerKind, {
pub info: SwapchainInfo,
/* private fields */
}Fields
info: SwapchainInfoImplementations
sourceimpl<P> Swapchain<P> where
P: SharedPointerKind,
impl<P> Swapchain<P> where
P: SharedPointerKind,
pub fn new(
device: &SharedPointer<Device<P>, P>,
surface: Surface<P>,
info: SwapchainInfo
) -> Result<Self, DriverError>
pub fn acquire_next_image(
&mut self
) -> Result<SwapchainImage<P>, SwapchainError>
pub fn present_image(&mut self, image: SwapchainImage<P>)
Trait Implementations
sourceimpl<P: Debug> Debug for Swapchain<P> where
P: SharedPointerKind,
impl<P: Debug> Debug for Swapchain<P> where
P: SharedPointerKind,
Auto Trait Implementations
impl<P> !RefUnwindSafe for Swapchain<P>
impl<P> Send for Swapchain<P> where
P: Send,
impl<P> Sync for Swapchain<P> where
P: Send + Sync,
impl<P> Unpin for Swapchain<P> where
P: Unpin,
impl<P> !UnwindSafe for Swapchain<P>
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