pub struct GpuDeviceBuilder { /* private fields */ }Available on crate features
experimental and SystemInfo only.Implementations§
Source§impl GpuDeviceBuilder
impl GpuDeviceBuilder
Sourcepub fn vendor_id(&mut self, v: f64) -> &mut Self
pub fn vendor_id(&mut self, v: f64) -> &mut Self
PCI ID of the GPU vendor, if available; 0 otherwise.
Sourcepub fn device_id(&mut self, v: f64) -> &mut Self
pub fn device_id(&mut self, v: f64) -> &mut Self
PCI ID of the GPU device, if available; 0 otherwise.
Sourcepub fn sub_sys_id(&mut self, v: f64) -> &mut Self
pub fn sub_sys_id(&mut self, v: f64) -> &mut Self
Sub sys ID of the GPU, only available on Windows.
Sourcepub fn revision(&mut self, v: f64) -> &mut Self
pub fn revision(&mut self, v: f64) -> &mut Self
Revision of the GPU, only available on Windows.
Sourcepub fn vendor_string(&mut self, v: String) -> &mut Self
pub fn vendor_string(&mut self, v: String) -> &mut Self
String description of the GPU vendor, if the PCI ID is not available.
Sourcepub fn device_string(&mut self, v: String) -> &mut Self
pub fn device_string(&mut self, v: String) -> &mut Self
String description of the GPU device, if the PCI ID is not available.
Sourcepub fn driver_vendor(&mut self, v: String) -> &mut Self
pub fn driver_vendor(&mut self, v: String) -> &mut Self
String description of the GPU driver vendor.
Sourcepub fn driver_version(&mut self, v: String) -> &mut Self
pub fn driver_version(&mut self, v: String) -> &mut Self
String description of the GPU driver version.
pub fn build(&mut self) -> Result<GpuDevice, &'static str>
Trait Implementations§
Source§impl Clone for GpuDeviceBuilder
impl Clone for GpuDeviceBuilder
Source§fn clone(&self) -> GpuDeviceBuilder
fn clone(&self) -> GpuDeviceBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GpuDeviceBuilder
impl Debug for GpuDeviceBuilder
Auto Trait Implementations§
impl Freeze for GpuDeviceBuilder
impl RefUnwindSafe for GpuDeviceBuilder
impl Send for GpuDeviceBuilder
impl Sync for GpuDeviceBuilder
impl Unpin for GpuDeviceBuilder
impl UnwindSafe for GpuDeviceBuilder
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