---
title: depthAttachmentPixelFormat
framework: realitykit
role: symbol
role_heading: Instance Property
path: realitykit/lowlevelrenderer/configuration/depthattachmentpixelformat
---

# depthAttachmentPixelFormat

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

## Declaration

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

## Discussion

Discussion 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)
- [stencilAttachmentPixelFormat](realitykit/lowlevelrenderer/configuration/stencilattachmentpixelformat.md)
