<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.11.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Metal",
  "identifier" : "/documentation/Metal/MTLRenderPassDepthAttachmentDescriptor",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Metal"
    ],
    "preciseIdentifier" : "c:objc(cs)MTLRenderPassDepthAttachmentDescriptor"
  },
  "title" : "MTLRenderPassDepthAttachmentDescriptor"
}
-->

# MTLRenderPassDepthAttachmentDescriptor

A depth render target that serves as the output destination for depth pixels generated by a render pass.

```
class MTLRenderPassDepthAttachmentDescriptor
```

## Topics

### Specifying clearing value

[`clearDepth`](/documentation/Metal/MTLRenderPassDepthAttachmentDescriptor/clearDepth)

The depth to use when clearing the depth attachment.

### MSAA depth resolve

[`depthResolveFilter`](/documentation/Metal/MTLRenderPassDepthAttachmentDescriptor/depthResolveFilter)

The filter used for an MSAA depth resolve operation.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)