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

# depthUsage

The texture usage value to apply to the layer’s depth textures.

## Declaration

```swift
var depthUsage: MTLTextureUsage { get set }
```

## Discussion

Discussion Metal optimizes texture-related operations based on the value in this property. The usage value can be a combination of options. For more information, see MTLTextureUsage.

## See Also

### Configuring the depth information

- [depthFormat](compositorservices/layerrenderer/configuration-swift.struct/depthformat.md)
- [defaultDepthRange](compositorservices/layerrenderer/configuration-swift.struct/defaultdepthrange.md)
