---
title: depthAttachmentPixelFormat
framework: metal
role: symbol
role_heading: Instance Property
path: metal/mtlrenderpipelinedescriptor/depthattachmentpixelformat
---

# depthAttachmentPixelFormat

The pixel format of the attachment that stores depth data.

## Declaration

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

## Discussion

Discussion By default, the pixel format of the rendering pipeline state for each attachment is MTLPixelFormatInvalid.

## See Also

### Specifying rendering pipeline state

- [reset()](metal/mtlrenderpipelinedescriptor/reset().md)
- [colorAttachments](metal/mtlrenderpipelinedescriptor/colorattachments.md)
- [stencilAttachmentPixelFormat](metal/mtlrenderpipelinedescriptor/stencilattachmentpixelformat.md)
