---
title: stencilAttachmentPixelFormat
framework: realitykit
role: symbol
role_heading: Instance Property
path: realitykit/lowlevelrenderer/configuration/stencilattachmentpixelformat
---

# stencilAttachmentPixelFormat

The pixel format of the stencil attachment in the render pass the renderer encodes into.

## Declaration

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

## Discussion

Discussion Relevant when the render pass uses a separate stencil attachment rather than a packed depth-stencil format. Use this format when compiling your own MTLRenderPipelineState objects for draw calls issued inside the render(using:_:) callback.

## See Also

### Configuring pixel formats

- [colorAttachmentPixelFormats](realitykit/lowlevelrenderer/configuration/colorattachmentpixelformats.md)
- [depthAttachmentPixelFormat](realitykit/lowlevelrenderer/configuration/depthattachmentpixelformat.md)
