pub struct DeviceManager { /* private fields */ }Expand description
Device manager for GPU enumeration and selection
Implementations§
Source§impl DeviceManager
impl DeviceManager
Sourcepub async fn enumerate_adapters(&self) -> Vec<Adapter>
pub async fn enumerate_adapters(&self) -> Vec<Adapter>
Enumerate all adapters
Sourcepub async fn enumerate_filtered(&self, filter: &DeviceFilter) -> Vec<Adapter>
pub async fn enumerate_filtered(&self, filter: &DeviceFilter) -> Vec<Adapter>
Enumerate adapters matching filter
Sourcepub async fn get_best_adapter(&self, filter: &DeviceFilter) -> Result<Adapter>
pub async fn get_best_adapter(&self, filter: &DeviceFilter) -> Result<Adapter>
Get best adapter matching filter
Sourcepub async fn print_device_info(&self)
pub async fn print_device_info(&self)
Print device information
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DeviceManager
impl !RefUnwindSafe for DeviceManager
impl Send for DeviceManager
impl Sync for DeviceManager
impl Unpin for DeviceManager
impl UnsafeUnpin for DeviceManager
impl !UnwindSafe for DeviceManager
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more