I'm iterating over the list of returned MTLDevices on a 2013 Mac Pro and both GPUs return false for their headless property. Is this accurate? I thought only 1 GPU had access to displays.
The code
let devices: [MTLDevice] = MTLCopyAllDevices()
//...
for metalDevice: MTLDevice in devices {
if metalDevice.headless == true {
print("headless")
headlessDevice = metalDevice
}
else {
print("it has a head")
}
}I could just pick the one not returned by MTLCreateSystemDefaultDevice but is there a better way of picking the secondary GPU?