pub struct GpuInfo {
pub name: String,
pub vendor: GpuVendor,
pub vram_bytes: u64,
pub api_backend: String,
}Expand description
Runtime information about a discovered GPU.
Fields§
§name: StringHuman-readable adapter name (e.g. “NVIDIA GeForce RTX 4090”).
vendor: GpuVendorHardware vendor.
vram_bytes: u64Estimated VRAM in bytes.
api_backend: StringGraphics API backend in use (e.g. “Vulkan”, “Metal”, “CUDA”).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GpuInfo
impl RefUnwindSafe for GpuInfo
impl Send for GpuInfo
impl Sync for GpuInfo
impl Unpin for GpuInfo
impl UnsafeUnpin 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