---
title: depthPixelFormat
framework: realitykit
role: symbol
role_heading: Instance Property
path: realitykit/lowlevelrenderer/configuration/output-swift.struct/depthpixelformat
---

# depthPixelFormat

The pixel format of the depth attachment, or nil to omit depth.

## Declaration

```swift
var depthPixelFormat: MTLPixelFormat? { get set }
```

## Discussion

Discussion Corresponds to MTLRenderPassDepthAttachmentDescriptor.texture.pixelFormat.

## See Also

### Specifying pixel formats

- [colorPixelFormat](realitykit/lowlevelrenderer/configuration/output-swift.struct/colorpixelformat.md)
