---
title: colorFormat
framework: compositorservices
role: symbol
role_heading: Instance Property
path: compositorservices/layerrenderer/configuration-swift.struct/colorformat
---

# colorFormat

The pixel format to use for color textures.

## Declaration

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

## Discussion

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.

## See Also

### Configuring the color textures

- [colorUsage](compositorservices/layerrenderer/configuration-swift.struct/colorusage.md)
