pub struct GpuInfo { /* private fields */ }Available on crate features
experimental and SystemInfo only.Expand description
Provides information about the GPU(s) on the system.
Implementations§
Source§impl GpuInfo
impl GpuInfo
pub fn builder() -> GpuInfoBuilder
Sourcepub fn devices(&self) -> &[GpuDevice]
pub fn devices(&self) -> &[GpuDevice]
The graphics devices on the system. Element 0 is the primary GPU.
Sourcepub fn aux_attributes(&self) -> Option<&GpuInfoAuxAttributes>
pub fn aux_attributes(&self) -> Option<&GpuInfoAuxAttributes>
An optional dictionary of additional GPU related attributes.
Sourcepub fn feature_status(&self) -> Option<&GpuInfoFeatureStatus>
pub fn feature_status(&self) -> Option<&GpuInfoFeatureStatus>
An optional dictionary of graphics features and their status.
Sourcepub fn driver_bug_workarounds(&self) -> &[String]
pub fn driver_bug_workarounds(&self) -> &[String]
An optional array of GPU driver bug workarounds.
Sourcepub fn video_decoding(&self) -> &[VideoDecodeAcceleratorCapability]
pub fn video_decoding(&self) -> &[VideoDecodeAcceleratorCapability]
Supported accelerated video decoding capabilities.
Sourcepub fn video_encoding(&self) -> &[VideoEncodeAcceleratorCapability]
pub fn video_encoding(&self) -> &[VideoEncodeAcceleratorCapability]
Supported accelerated video encoding capabilities.
Sourcepub fn image_decoding(&self) -> &[ImageDecodeAcceleratorCapability]
pub fn image_decoding(&self) -> &[ImageDecodeAcceleratorCapability]
Supported accelerated image decoding capabilities.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for GpuInfo
impl<'de> Deserialize<'de> for GpuInfo
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 GpuInfo
impl RefUnwindSafe for GpuInfo
impl Send for GpuInfo
impl Sync for GpuInfo
impl Unpin for GpuInfo
impl UnwindSafe for GpuInfo
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