Function

MTLCopyAllDevices

Returns an array of references to all Metal device objects in the system.

Declaration

NSArray<id<MTLDevice>> * MTLCopyAllDevices(void);

Return Value

An array of device objects that support Metal framework commands.

See Also

Acquiring Device Objects

MTLCreateSystemDefaultDevice

Returns a reference to the preferred default Metal device object.

MTLCopyAllDevicesWithObserver

Fetches the available Metal devices and registers a notification observer for changes to the list.

MTLRemoveDeviceObserver

Removes a registered observer of device notifications.

CGDirectDisplayCopyCurrentMetalDevice

Returns a reference to the Metal device currently driving a given display.