pub struct GpuDeviceBuilder { /* private fields */ }Expand description
Builder for GpuDevice.
Implementations§
Source§impl GpuDeviceBuilder
impl GpuDeviceBuilder
Sourcepub fn vendor_id<VALUE: Into<JsFloat>>(&mut self, value: VALUE) -> &mut Self
pub fn vendor_id<VALUE: Into<JsFloat>>(&mut self, value: VALUE) -> &mut Self
PCI ID of the GPU vendor, if available; 0 otherwise.
Sourcepub fn device_id<VALUE: Into<JsFloat>>(&mut self, value: VALUE) -> &mut Self
pub fn device_id<VALUE: Into<JsFloat>>(&mut self, value: VALUE) -> &mut Self
PCI ID of the GPU device, if available; 0 otherwise.
Sourcepub fn sub_sys_id<VALUE: Into<JsFloat>>(&mut self, value: VALUE) -> &mut Self
pub fn sub_sys_id<VALUE: Into<JsFloat>>(&mut self, value: VALUE) -> &mut Self
Sub sys ID of the GPU, only available on Windows.
Sourcepub fn revision<VALUE: Into<JsFloat>>(&mut self, value: VALUE) -> &mut Self
pub fn revision<VALUE: Into<JsFloat>>(&mut self, value: VALUE) -> &mut Self
Revision of the GPU, only available on Windows.
Sourcepub fn vendor_string<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn vendor_string<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
String description of the GPU vendor, if the PCI ID is not available.
Sourcepub fn device_string<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn device_string<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
String description of the GPU device, if the PCI ID is not available.
Sourcepub fn driver_vendor<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn driver_vendor<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
String description of the GPU driver vendor.
Sourcepub fn driver_version<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn driver_version<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
String description of the GPU driver version.
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 moreAuto Trait Implementations§
impl Freeze for GpuDeviceBuilder
impl RefUnwindSafe for GpuDeviceBuilder
impl Send for GpuDeviceBuilder
impl Sync for GpuDeviceBuilder
impl Unpin for GpuDeviceBuilder
impl UnsafeUnpin 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