---
title: MTLDeviceLocation
framework: metal
role: symbol
role_heading: Enumeration
path: metal/mtldevicelocation
---

# MTLDeviceLocation

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

## Declaration

```swift
enum MTLDeviceLocation
```

## Overview

Overview Check the location of a GPU by checking the location property of its MTLDevice instance.

## Topics

### Determining the GPU’s location

- [MTLDeviceLocation.builtIn](metal/mtldevicelocation/builtin.md)
- [MTLDeviceLocation.slot](metal/mtldevicelocation/slot.md)
- [MTLDeviceLocation.external](metal/mtldevicelocation/external.md)
- [MTLDeviceLocation.unspecified](metal/mtldevicelocation/unspecified.md)

### Initializers

- [init(rawValue:)](metal/mtldevicelocation/init(rawvalue:).md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Identifying a GPU device

- [name](metal/mtldevice/name.md)
- [architecture](metal/mtldevice/architecture.md)
- [MTLArchitecture](metal/mtlarchitecture.md)
- [registryID](metal/mtldevice/registryid.md)
- [location](metal/mtldevice/location.md)
- [locationNumber](metal/mtldevice/locationnumber.md)
- [isLowPower](metal/mtldevice/islowpower.md)
- [isRemovable](metal/mtldevice/isremovable.md)
- [isHeadless](metal/mtldevice/isheadless.md)
- [peerGroupID](metal/mtldevice/peergroupid.md)
- [peerCount](metal/mtldevice/peercount.md)
- [peerIndex](metal/mtldevice/peerindex.md)
