Enumeration

MTLDeviceLocation

Options describing possible locations for the GPU.

Declaration

typedef enum MTLDeviceLocation : NSUInteger {
    ...
} MTLDeviceLocation;

Topics

Determining the GPU's Location

MTLDeviceLocationBuiltIn

The GPU is built into the device.

MTLDeviceLocationSlot

The GPU is connected to a slot inside the computer.

MTLDeviceLocationExternal

The GPU is connected via an external interface, such as Thunderbolt.

MTLDeviceLocationUnspecified

The GPU's location is not specified or cannot be determined.

See Also

Querying GPU Properties

name

The name of the device.

Required.

headless

A Boolean value that indicates whether a device is configured as headless.

Required.

lowPower

A Boolean value that indicates whether a device is low-power.

Required.

removable

A Boolean value that determines whether or not a GPU is removable.

Required.

registryID

The registry ID value for the device.

Required.

location

The physical location of the GPU relative to the host computer.

Required.

locationNumber

A more detailed specifier for the GPU's location.

Required.

maxTransferRate

The highest theoretical rate of transfer between system RAM and dedicated GPU memory (VRAM), measured in bytes per second.

Required.

hasUnifiedMemory

A Boolean that indicates whether the GPU shares all of its memory with the CPU.

Required.