pub struct GpuAdapter {
pub name: String,
pub luid: String,
pub engines: GpuEngines,
pub dedicated_used_mb: u64,
pub dedicated_total_mb: Option<u64>,
pub shared_used_mb: u64,
pub unified_memory: bool,
pub source: GpuSource,
pub process_load: Accuracy,
pub process_memory: Accuracy,
}Expand description
One GPU adapter.
Fields§
§name: StringAdapter name, for example NVIDIA GeForce RTX 4070.
luid: StringStable ID of the adapter: on Windows its LUID as it appears in PDH instance names, for
example 0x00000000_0x0000d1a2; other OSes use their own stable ID.
engines: GpuEnginesEngine utilization.
dedicated_used_mb: u64Dedicated video memory in use. On a unified-memory adapter, the system memory the GPU has allocated, which RAM use already counts.
dedicated_total_mb: Option<u64>Dedicated video memory installed, when the OS reports it; None on a unified-memory
adapter, which has none of its own.
Shared system memory in use by the adapter.
unified_memory: boolWhether the adapter’s video memory is the machine’s RAM, as on Apple Silicon. Admission then counts video memory against RAM.
source: GpuSourceWhere the numbers come from.
process_load: AccuracyHow well the source measures each process’s engine load.
process_memory: AccuracyHow well the source measures each process’s video memory.