pub struct Driver<P> where
P: SharedPointerKind, {
pub device: Shared<Device<P>, P>,
pub swapchain: Swapchain<P>,
}Fields
device: Shared<Device<P>, P>swapchain: Swapchain<P>Implementations
sourceimpl<P> Driver<P> where
P: SharedPointerKind,
impl<P> Driver<P> where
P: SharedPointerKind,
pub fn new(
window: &impl HasRawWindowHandle,
cfg: DriverConfig,
desired_resolution: UVec2
) -> Result<Self, DriverError>
Trait Implementations
Auto Trait Implementations
impl<P> !RefUnwindSafe for Driver<P>
impl<P> !Send for Driver<P>
impl<P> !Sync for Driver<P>
impl<P> Unpin for Driver<P> where
P: Unpin,
impl<P> !UnwindSafe for Driver<P>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more