1 2 3 4 5
use metal::MTLDevice; extern "C" { pub fn CGDirectDisplayCopyCurrentMetalDevice(display: u32) -> *mut MTLDevice; }