pub struct GpuDevice { /* private fields */ }Available on crate features
experimental and SystemInfo only.Expand description
Describes a single graphics processor (GPU).
Implementations§
Source§impl GpuDevice
impl GpuDevice
pub fn builder() -> GpuDeviceBuilder
Sourcepub fn sub_sys_id(&self) -> Option<&f64>
pub fn sub_sys_id(&self) -> Option<&f64>
Sub sys ID of the GPU, only available on Windows.
Sourcepub fn vendor_string(&self) -> &str
pub fn vendor_string(&self) -> &str
String description of the GPU vendor, if the PCI ID is not available.
Sourcepub fn device_string(&self) -> &str
pub fn device_string(&self) -> &str
String description of the GPU device, if the PCI ID is not available.
Sourcepub fn driver_vendor(&self) -> &str
pub fn driver_vendor(&self) -> &str
String description of the GPU driver vendor.
Sourcepub fn driver_version(&self) -> &str
pub fn driver_version(&self) -> &str
String description of the GPU driver version.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for GpuDevice
impl<'de> Deserialize<'de> for GpuDevice
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for GpuDevice
impl RefUnwindSafe for GpuDevice
impl Send for GpuDevice
impl Sync for GpuDevice
impl Unpin for GpuDevice
impl UnwindSafe for GpuDevice
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