Type Property

removalRequested

A notification posted when the user indicates that a GPU will be removed from the system.

Declaration

static let removalRequested: MTLDeviceNotificationName

Discussion

This notification indicates that apps should stop using the device to be removed. Apps should assume that the device will be removed imminently and they should immediately begin releasing all Metal objects created on the device, as well as any references to the device itself.

Additionally, just before the notification is posted, Metal removes the device from the available devices array.