pub struct GPUDevice<'a> { /* private fields */ }Expand description
Describes a single graphics processor (GPU).
Implementations§
Source§impl<'a> GPUDevice<'a>
impl<'a> GPUDevice<'a>
Sourcepub fn builder(
vendor_id: f64,
device_id: f64,
vendor_string: impl Into<Cow<'a, str>>,
device_string: impl Into<Cow<'a, str>>,
driver_vendor: impl Into<Cow<'a, str>>,
driver_version: impl Into<Cow<'a, str>>,
) -> GPUDeviceBuilder<'a>
pub fn builder( vendor_id: f64, device_id: f64, vendor_string: impl Into<Cow<'a, str>>, device_string: impl Into<Cow<'a, str>>, driver_vendor: impl Into<Cow<'a, str>>, driver_version: impl Into<Cow<'a, str>>, ) -> GPUDeviceBuilder<'a>
Creates a builder for this type with the required parameters:
vendor_id: PCI ID of the GPU vendor, if available; 0 otherwise.device_id: PCI ID of the GPU device, if available; 0 otherwise.vendor_string: String description of the GPU vendor, if the PCI ID is not available.device_string: String description of the GPU device, if the PCI ID is not available.driver_vendor: String description of the GPU driver vendor.driver_version: String description of the GPU driver version.
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, 'a> Deserialize<'de> for GPUDevice<'a>
impl<'de, 'a> Deserialize<'de> for GPUDevice<'a>
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<'a> Freeze for GPUDevice<'a>
impl<'a> RefUnwindSafe for GPUDevice<'a>
impl<'a> Send for GPUDevice<'a>
impl<'a> Sync for GPUDevice<'a>
impl<'a> Unpin for GPUDevice<'a>
impl<'a> UnsafeUnpin for GPUDevice<'a>
impl<'a> UnwindSafe for GPUDevice<'a>
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