Skip to main content

copy_all_devices

Function copy_all_devices 

Source
pub fn copy_all_devices() -> Option<*mut c_void>
Expand description

Safely copy all available Metal devices (macOS only).

§Returns

The raw pointer to an NSArray of devices, or None if unavailable.

§Safety

The caller owns the returned array and must release it.