---
title: device
framework: Touch Controller
role: symbol
role_heading: Instance Property
platforms: [iOS 26.0+, iPadOS 26.0+, Mac Catalyst 26.0+]
path: touchcontroller/tctouchcontrollerdescriptor/device
---

# device

The Metal device to use for rendering.

## Declaration

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

## See Also

### Inspecting the controller descriptor

- [colorPixelFormat](touchcontroller/tctouchcontrollerdescriptor/colorpixelformat.md)
- [depthAttachmentPixelFormat](touchcontroller/tctouchcontrollerdescriptor/depthattachmentpixelformat.md)
- [drawableSize](touchcontroller/tctouchcontrollerdescriptor/drawablesize.md)
- [sampleCount](touchcontroller/tctouchcontrollerdescriptor/samplecount.md)
- [size](touchcontroller/tctouchcontrollerdescriptor/size.md)
- [stencilAttachmentPixelFormat](touchcontroller/tctouchcontrollerdescriptor/stencilattachmentpixelformat.md)
