<!--
{
  "availability" : [
    "macOS: 10.15.0 - 27.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "Metal",
  "identifier" : "/documentation/Metal/MTLDeviceLocation",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Metal"
    ],
    "preciseIdentifier" : "c:@E@MTLDeviceLocation"
  },
  "title" : "MTLDeviceLocation"
}
-->

# MTLDeviceLocation

Indicates the location of the GPU relative to the system it’s connect to.

```
enum MTLDeviceLocation
```

## Overview

Check the location of a GPU by checking the [`location`](/documentation/Metal/MTLDevice/location) property of its [`MTLDevice`](/documentation/Metal/MTLDevice) instance.

## Topics

### Determining the GPU’s location

[`MTLDeviceLocation.builtIn`](/documentation/Metal/MTLDeviceLocation/builtIn)

A location that indicates the GPU is permanently connected to the system internally.

[`MTLDeviceLocation.slot`](/documentation/Metal/MTLDeviceLocation/slot)

A GPU location that indicates a person connected the GPU to a system’s internal slot.

[`MTLDeviceLocation.external`](/documentation/Metal/MTLDeviceLocation/external)

A GPU location that indicates a person connected the GPU to the system with an external interface, such as Thunderbolt.

[`MTLDeviceLocation.unspecified`](/documentation/Metal/MTLDeviceLocation/unspecified)

A value that indicates the system can’t determine how the GPU connects to it.



---

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)