Instance Property

device

The device used to create Metal objects.

Declaration

var device: MTLDevice? { get set }

Discussion

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