---
title: device
framework: compositorservices
role: symbol
role_heading: Instance Property
path: compositorservices/layerrenderer/device
---

# device

The GPU device that the layer renderer uses for drawing operations

## Declaration

```swift
var device: any MTLDevice { get }
```

## Discussion

Discussion You can inspect the device for any information you might need. The system uses it to create the textures for drawing, and also to create synchronization events for the layer.
