-
Notifications
You must be signed in to change notification settings - Fork 4
Closed
Description
hi,
maybe you can use something like that:
use iron_oxide::CGDirectDisplayCopyCurrentMetalDevice;
pub fn gpu() -> ColoredString {
let display = CGDisplay::new(unsafe { CGMainDisplayID() });
let mtl_device = unsafe { CGDirectDisplayCopyCurrentMetalDevice(display.id) };
let gpu = unsafe { mtl_device.get_name().to_string() };
return titled_segment("GPU", gpu);
}
best regards,
ronny
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels