---
title: depthStencilAttachmentTextureUsage
framework: metalkit
role: symbol
role_heading: Instance Property
path: metalkit/mtkview/depthstencilattachmenttextureusage
---

# depthStencilAttachmentTextureUsage

The texture usage characteristics that the view uses when creating the depth and stencil textures.

## Declaration

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

## Discussion

Discussion The default value is renderTarget.

## See Also

### Configuring the Render Target Properties

- [depthStencilPixelFormat](metalkit/mtkview/depthstencilpixelformat.md)
- [clearDepth](metalkit/mtkview/cleardepth.md)
- [clearStencil](metalkit/mtkview/clearstencil.md)
