use super::context::MetalNativeContext;
use crate::error::{HiveGpuError, Result};
use std::sync::Arc;
#[cfg(all(target_os = "macos", feature = "metal-native"))]
#[derive(Debug)]
pub struct MetalVramMonitor {
context: Arc<MetalNativeContext>,
}
#[cfg(all(target_os = "macos", feature = "metal-native"))]
impl MetalVramMonitor {
pub fn new(context: Arc<MetalNativeContext>) -> Result<Self> {
Ok(Self { context })
}
pub fn get_vram_usage(&self) -> Result<u64> {
Ok(0)
}
pub fn get_available_vram(&self) -> Result<u64> {
Ok(1024 * 1024 * 1024) }
}