pub struct AdapterInfo {
pub name: String,
pub vendor_id: u32,
pub device_id: u32,
pub vendor: &'static str,
pub kind: AdapterKind,
pub driver: String,
pub driver_info: String,
pub driver_version: String,
pub api_version: (u32, u32, u32),
pub backend: &'static str,
pub missing: Option<&'static str>,
}Expand description
who an adapter is
Fields§
§name: Stringthe GPU’s name (“NVIDIA GeForce RTX 2070 SUPER”)
vendor_id: u32§device_id: u32§vendor: &'static strthe vendor’s name for well-known vendor ids (“NVIDIA”, “AMD”, “Intel”, ..)
kind: AdapterKind§driver: Stringthe driver’s name (“NVIDIA”) and its information string (the version as the vendor writes it)
driver_info: String§driver_version: Stringthe driver version decoded by the vendor’s scheme
api_version: (u32, u32, u32)the API version the device supports (major, minor, patch)
backend: &'static str“Vulkan”, later “WebGPU” / “Metal”
missing: Option<&'static str>why the backend cannot use this adapter (None: usable)
Trait Implementations§
Source§impl Clone for AdapterInfo
impl Clone for AdapterInfo
Auto Trait Implementations§
impl Forget for AdapterInfo
impl Freeze for AdapterInfo
impl RefUnwindSafe for AdapterInfo
impl Send for AdapterInfo
impl Sync for AdapterInfo
impl Unpin for AdapterInfo
impl UnsafeUnpin for AdapterInfo
impl UnwindSafe for AdapterInfo
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