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

# depthFormat

The pixel format to use for the layer’s depth textures.

## Declaration

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

## Discussion

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

## See Also

### Configuring the depth information

- [depthUsage](compositorservices/layerrenderer/configuration-swift.struct/depthusage.md)
- [defaultDepthRange](compositorservices/layerrenderer/configuration-swift.struct/defaultdepthrange.md)
