Skip to main content

detect_hw_accel_caps

Function detect_hw_accel_caps 

Source
pub fn detect_hw_accel_caps() -> &'static HwAccelCapabilities
Expand description

Probe and return hardware acceleration capabilities for this process.

The result is computed once on the first call and cached for the process lifetime. Subsequent calls return the cached value with no overhead.

Use detect_hw_accel_with_probe for unit tests where you need to inject a MockProbe instead of running the real system probe.