Hi all. I'm trying to get C++ code working with Metal.
I get the array of MTL:Device by calling
NS::Array *device_array = MTL::CopyAllDevices();
Next, I want to get the only element of the MTL::Device array by calling
MTL::Device *device = device_array->object(0);
I get an error:
Cannot initialize a variable of type 'MTL::Device *' with an rvalue of type 'NS::Object *'
Question: how to get an MTL::Device object from NS::Array?