locationNumber
A specific GPU position based on its general location.
Declaration
var locationNumber: Int { get }Discussion
The meaning of the location number depends on a device’s location property:
For MTLDeviceLocation.builtIn, the location number is
0for low-power GPUs (see isLowPower) and1for other GPUs.For MTLDeviceLocation.slot, the location number represents the slot.
For MTLDeviceLocation.external, the location number represents the Thunderbolt port.