Fetches the available Metal devices and registers a notification observer for changes to the list.
- macOS 10.13+
- Xcode 9.0+
A block of code invoked when a device notification is received.
A tuple containing the array of device objects and an observer object.
The observer object is retained by Metal. Call the
MTLRemove function, passing the observer object, to stop receiving device notifications.