---
title: pixelFormat
framework: metal
role: symbol
role_heading: Instance Property
path: metal/mtl4renderpipelinecolorattachmentdescriptor/pixelformat
---

# pixelFormat

Configures the pixel format.

## Declaration

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

## Discussion

Discussion This property defaults to MTLPixelFormatInvalid.
