---
title: colorPixelFormat
framework: realitykit
role: symbol
role_heading: Instance Property
path: realitykit/lowlevelrenderer/configuration/output-swift.struct/colorpixelformat
---

# colorPixelFormat

The pixel format of the color attachment, or nil for depth-only passes.

## Declaration

```swift
var colorPixelFormat: MTLPixelFormat? { get set }
```

## Discussion

Discussion Corresponds to MTLRenderPassColorAttachmentDescriptor.texture.pixelFormat.

## See Also

### Specifying pixel formats

- [depthPixelFormat](realitykit/lowlevelrenderer/configuration/output-swift.struct/depthpixelformat.md)
