pub struct Driver {
pub device: Arc<Device>,
/* private fields */
}Expand description
Holds a constructed graphics driver.
Fields§
§device: Arc<Device>The current device.
Implementations§
source§impl Driver
impl Driver
sourcepub fn new(
display_window: &impl HasRawDisplayHandle + HasRawWindowHandle,
cfg: DriverConfig,
width: u32,
height: u32
) -> Result<Self, DriverError>
pub fn new( display_window: &impl HasRawDisplayHandle + HasRawWindowHandle, cfg: DriverConfig, width: u32, height: u32 ) -> Result<Self, DriverError>
Constructs a new Driver from the given configuration.