Fetches the available Metal devices and registers a notification observer for changes to the list.
- macOS 10.13+
An object that receives device notifications.
A block of code invoked when a device notification is received.
observer object is retained by Metal. Call the
MTLRemove function, passing the observer object, to stop receiving device notifications.