<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/LowLevelRenderer/Configuration/depthAttachmentPixelFormat",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:19RealityCoreRenderer08LowLevelC0C13ConfigurationV26depthAttachmentPixelFormatSo08MTLPixelJ0Vvp"
  },
  "title" : "depthAttachmentPixelFormat"
}
-->

# depthAttachmentPixelFormat

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

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

## Discussion

Use this format when compiling your own `MTLRenderPipelineState`
objects for draw calls issued inside the `render(using:_:)` callback.

---

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)