pub struct GPUDevice {
pub vendorId: f64,
pub deviceId: f64,
pub subSysId: Option<f64>,
pub revision: Option<f64>,
pub vendorString: String,
pub deviceString: String,
pub driverVendor: String,
pub driverVersion: String,
}Expand description
Describes a single graphics processor (GPU).
Fields§
§vendorId: f64PCI ID of the GPU vendor, if available; 0 otherwise.
deviceId: f64PCI ID of the GPU device, if available; 0 otherwise.
subSysId: Option<f64>Sub sys ID of the GPU, only available on Windows.
revision: Option<f64>Revision of the GPU, only available on Windows.
vendorString: StringString description of the GPU vendor, if the PCI ID is not available.
deviceString: StringString description of the GPU device, if the PCI ID is not available.
driverVendor: StringString description of the GPU driver vendor.
driverVersion: StringString 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 UnsafeUnpin 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