Expand description
Holds a constructed graphics driver.
Fields
device: Arc<Device>The current device.
Implementations
sourceimpl Driver
impl Driver
sourcepub fn new(
window: &impl HasRawWindowHandle,
cfg: DriverConfig,
width: u32,
height: u32
) -> Result<Self, DriverError>
pub fn new(
window: &impl HasRawWindowHandle,
cfg: DriverConfig,
width: u32,
height: u32
) -> Result<Self, DriverError>
Constructs a new Driver from the given configuration.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Driver
impl Send for Driver
impl Sync for Driver
impl Unpin for Driver
impl !UnwindSafe for Driver
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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