MTLResource.device

The device object that created the resource.

interface MTLResource
@selector("device")
device
()

Meta