Instance Property

device

The device used to create Metal objects.

Declaration

@property(nonatomic) id<MTLDevice> device;

Discussion

The default value is nil. The device must be explicitly set by obtaining the default device from MTLCreateSystemDefaultDevice or querying MTLCopyAllDevices.