Skip to main content

gpu_available

Function gpu_available 

Source
pub fn gpu_available() -> bool
Expand description

Return true when GPU scoring support is available in this build/runtime.

Honors the resolved runtime policy before touching the adapter path. A caller asking after --no-gpu must get the same cheap “not available” answer as gpu_probe() instead of triggering a wgpu adapter probe.

§Examples

use keyhog_scanner::gpu::gpu_available;
let _ = gpu_available();