---
title: clearDepth
framework: realitykit
role: symbol
role_heading: Instance Property
path: realitykit/lowlevelrenderer/output-swift.struct/cleardepth
---

# clearDepth

The depth value to use when clearing the depth attachment at the start of a render pass.

## Declaration

```swift
var clearDepth: Double { get set }
```

## Discussion

Discussion Corresponds to MTLRenderPassDepthAttachmentDescriptor.clearDepth.

## See Also

### Clearing and resolving

- [clearColor](realitykit/lowlevelrenderer/output-swift.struct/clearcolor.md)
- [depthResolveFilter](realitykit/lowlevelrenderer/output-swift.struct/depthresolvefilter.md)
