### Query Active GPU Information in Rust Source: https://github.com/spikehd/gfxinfo/blob/main/README.md Use this snippet to get basic information about the active GPU. Ensure the `gfxinfo` crate is added as a dependency. The `gpu_info` feature flag is required for VRAM and temperature details. ```rust use gfxinfo::active_gpu; let gpu = active_gpu(); println!("GPU vendor: {}", gpu.vendor()); println!("GPU model: {}", gpu.model()); println!("GPU family: {}", gpu.family()); println!("GPU device ID: {}", gpu.device_id()); // And with `gpu_info` feature enabled let info = gpu.info(); println!("Total VRAM: {} bytes", info.total_vram()); println!("Used VRAM: {} bytes", info.used_vram()); println!("Load: {}%", info.load_pct()); println!("Temperature: {} C", info.temperature() / 1000); ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.