---
title: pixelFormat
framework: quartzcore
role: symbol
role_heading: Instance Property
path: quartzcore/cametallayer/pixelformat
---

# pixelFormat

The pixel format of the layer’s textures.

## Declaration

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

## Discussion

Discussion The default value is MTLPixelFormat.bgra8Unorm. You must use one of the following formats: MTLPixelFormat.bgra8Unorm MTLPixelFormat.bgra8Unorm_srgb MTLPixelFormat.rgba16Float MTLPixelFormat.rgb10a2Unorm MTLPixelFormat.bgr10a2Unorm MTLPixelFormat.bgra10_xr MTLPixelFormat.bgra10_xr_srgb MTLPixelFormat.bgr10_xr MTLPixelFormat.bgr10_xr_srgb

## See Also

### Configuring the Layer’s Drawable Objects

- [colorspace](quartzcore/cametallayer/colorspace.md)
- [framebufferOnly](quartzcore/cametallayer/framebufferonly.md)
- [drawableSize](quartzcore/cametallayer/drawablesize.md)
