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

# clearColor

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

## Declaration

```swift
var clearColor: MTLClearColor { get set }
```

## Discussion

Discussion Corresponds to MTLRenderPassColorAttachmentDescriptor.clearColor.

## See Also

### Clearing and resolving

- [clearDepth](realitykit/lowlevelrenderer/output-swift.struct/cleardepth.md)
- [depthResolveFilter](realitykit/lowlevelrenderer/output-swift.struct/depthresolvefilter.md)
