Removes a registered observer of device notifications.


func MTLRemoveDeviceObserver(_ observer: NSObjectProtocol)

See Also

Acquiring Device Objects

func MTLCreateSystemDefaultDevice() -> MTLDevice?

Returns a reference to the preferred default Metal device object.

func MTLCopyAllDevices() -> [MTLDevice]

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

func MTLCopyAllDevicesWithObserver(handler: MTLDeviceNotificationHandler) -> (devices: [MTLDevice], observer: NSObject)

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