<!--
{
  "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/Output-swift.struct/colorPixelFormat",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:19RealityCoreRenderer08LowLevelC0C13ConfigurationV6OutputV16colorPixelFormatSo08MTLPixelJ0VSgvp"
  },
  "title" : "colorPixelFormat"
}
-->

# colorPixelFormat

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

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

## Discussion

Corresponds to `MTLRenderPassColorAttachmentDescriptor.texture.pixelFormat`.

---

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)