<!--
{
  "availability" : [
    "macOS: 10.13.0 - 27.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "Metal",
  "identifier" : "/documentation/Metal/MTLDeviceNotificationName",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Metal"
    ],
    "preciseIdentifier" : "c:@T@MTLDeviceNotificationName"
  },
  "title" : "MTLDeviceNotificationName"
}
-->

# MTLDeviceNotificationName

A notification that represents a change to a GPU device in the system.

```
struct MTLDeviceNotificationName
```

## Topics

### Creating a notification name

[`wasAdded`](/documentation/Metal/MTLDeviceNotificationName/wasAdded)

A notification that Metal sends to observers when the system adds a GPU device.

[`removalRequested`](/documentation/Metal/MTLDeviceNotificationName/removalRequested)

A notification that Metal sends to observers when a person requests to remove a GPU device from the system.

[`wasRemoved`](/documentation/Metal/MTLDeviceNotificationName/wasRemoved)

A notification that Metal sends to observers when the system removes a GPU device.

[`init(rawValue:)`](/documentation/Metal/MTLDeviceNotificationName/init(rawValue:))

Creates a Metal device notification name from a string.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)