MTLDeviceRemovalRequestedNotification

Static MTLDeviceRemovalRequestedNotification 

Source
pub unsafe static MTLDeviceRemovalRequestedNotification: &'static MTLDeviceNotificationName
Available on crate feature MTLDevice only.
Expand description

This notification is posted when the user has requested that applications cease using a particular device. Applications should assume that the device will be removed (terminated) imminently. Additionally, the device will be removed from the internal device array prior to this notification being posted. Applications should immediately begin the process of releasing all resources created on the given device, as well as any references to the device itself.

See also Apple’s documentation