Trait VramProvider

Source
pub trait VramProvider: Send + Sync {
    // Required methods
    fn get_vram_usage_mb(&self) -> f32;
    fn get_vram_peak_mb(&self) -> f32;
    fn get_vram_capacity_mb(&self) -> Option<f32>;
}
Expand description

A trait for types that can provide VRAM usage statistics. This is typically implemented by a GraphicsDevice or a dedicated monitor in khora-infra.

Required Methods§

Source

fn get_vram_usage_mb(&self) -> f32

Returns the current VRAM usage in megabytes.

Source

fn get_vram_peak_mb(&self) -> f32

Returns the peak VRAM usage in megabytes.

Source

fn get_vram_capacity_mb(&self) -> Option<f32>

Returns the total VRAM capacity in megabytes, if available.

Implementors§