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

# stencilAttachmentPixelFormat

The pixel format for the stencil attachment.

## Declaration

```swift
var stencilAttachmentPixelFormat: MTLPixelFormat { get set }
```

## See Also

### Inspecting the controller descriptor

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