pub struct GPUInfo<'a> { /* private fields */ }Expand description
Provides information about the GPU(s) on the system.
Implementations§
Source§impl<'a> GPUInfo<'a>
impl<'a> GPUInfo<'a>
pub fn builder( devices: Vec<GPUDevice<'a>>, driverBugWorkarounds: Vec<Cow<'a, str>>, videoDecoding: Vec<VideoDecodeAcceleratorCapability<'a>>, videoEncoding: Vec<VideoEncodeAcceleratorCapability<'a>>, ) -> GPUInfoBuilder<'a>
pub fn devices(&self) -> &[GPUDevice<'a>]
pub fn auxAttributes(&self) -> Option<&Map<String, JsonValue>>
pub fn featureStatus(&self) -> Option<&Map<String, JsonValue>>
pub fn driverBugWorkarounds(&self) -> &[Cow<'a, str>]
pub fn videoDecoding(&self) -> &[VideoDecodeAcceleratorCapability<'a>]
pub fn videoEncoding(&self) -> &[VideoEncodeAcceleratorCapability<'a>]
Trait Implementations§
Source§impl<'de, 'a> Deserialize<'de> for GPUInfo<'a>
impl<'de, 'a> Deserialize<'de> for GPUInfo<'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 GPUInfo<'a>
impl<'a> RefUnwindSafe for GPUInfo<'a>
impl<'a> Send for GPUInfo<'a>
impl<'a> Sync for GPUInfo<'a>
impl<'a> Unpin for GPUInfo<'a>
impl<'a> UnsafeUnpin for GPUInfo<'a>
impl<'a> UnwindSafe for GPUInfo<'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