<!--
{
  "availability" : [
    "macOS: 26.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CompositorServices",
  "identifier" : "/documentation/CompositorServices/LayerRenderer/Configuration-swift.struct/colorFormat",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Compositor Services",
      "CompositorServices"
    ],
    "preciseIdentifier" : "s:So27CP_OBJECT_cp_layer_rendererC18CompositorServicesE13ConfigurationV11colorFormatSo08MTLPixelJ0Vvp"
  },
  "title" : "colorFormat"
}
-->

# colorFormat

The pixel format to use for color textures.

```
var colorFormat: MTLPixelFormat { get set }
```

## Discussion

Use this value to determine the pixel format for color textures in a frame. At configuration time, set the value to specify which pixel format you want.

> Note:
> Apple Vision Pro uses the P3 color space for pixel color values.

---

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)