pub struct GpuInfoBuilder { /* private fields */ }Available on crate features
experimental and SystemInfo only.Implementations§
Source§impl GpuInfoBuilder
impl GpuInfoBuilder
Sourcepub fn devices(&mut self, v: Vec<GpuDevice>) -> &mut Self
pub fn devices(&mut self, v: Vec<GpuDevice>) -> &mut Self
The graphics devices on the system. Element 0 is the primary GPU.
Sourcepub fn aux_attributes(&mut self, v: GpuInfoAuxAttributes) -> &mut Self
pub fn aux_attributes(&mut self, v: GpuInfoAuxAttributes) -> &mut Self
An optional dictionary of additional GPU related attributes.
Sourcepub fn feature_status(&mut self, v: GpuInfoFeatureStatus) -> &mut Self
pub fn feature_status(&mut self, v: GpuInfoFeatureStatus) -> &mut Self
An optional dictionary of graphics features and their status.
Sourcepub fn driver_bug_workarounds(&mut self, v: Vec<String>) -> &mut Self
pub fn driver_bug_workarounds(&mut self, v: Vec<String>) -> &mut Self
An optional array of GPU driver bug workarounds.
Sourcepub fn video_decoding(
&mut self,
v: Vec<VideoDecodeAcceleratorCapability>,
) -> &mut Self
pub fn video_decoding( &mut self, v: Vec<VideoDecodeAcceleratorCapability>, ) -> &mut Self
Supported accelerated video decoding capabilities.
Sourcepub fn video_encoding(
&mut self,
v: Vec<VideoEncodeAcceleratorCapability>,
) -> &mut Self
pub fn video_encoding( &mut self, v: Vec<VideoEncodeAcceleratorCapability>, ) -> &mut Self
Supported accelerated video encoding capabilities.
Sourcepub fn image_decoding(
&mut self,
v: Vec<ImageDecodeAcceleratorCapability>,
) -> &mut Self
pub fn image_decoding( &mut self, v: Vec<ImageDecodeAcceleratorCapability>, ) -> &mut Self
Supported accelerated image decoding capabilities.
pub fn build(&mut self) -> Result<GpuInfo, &'static str>
Trait Implementations§
Source§impl Clone for GpuInfoBuilder
impl Clone for GpuInfoBuilder
Source§fn clone(&self) -> GpuInfoBuilder
fn clone(&self) -> GpuInfoBuilder
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 GpuInfoBuilder
impl Debug for GpuInfoBuilder
Auto Trait Implementations§
impl Freeze for GpuInfoBuilder
impl RefUnwindSafe for GpuInfoBuilder
impl Send for GpuInfoBuilder
impl Sync for GpuInfoBuilder
impl Unpin for GpuInfoBuilder
impl UnwindSafe for GpuInfoBuilder
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