---
title: depthFromDepthStencil
framework: metal
role: symbol
role_heading: Type Property
path: metal/mtlblitoption/depthfromdepthstencil
---

# depthFromDepthStencil

A blit option that copies the depth portion of a combined depth and stencil texture to or from a buffer.

## Declaration

```swift
static var depthFromDepthStencil: MTLBlitOption { get }
```

## Discussion

Discussion You can pass this option to some methods that copy data between a buffer and a texture, including the following: copy(from:sourceOffset:sourceBytesPerRow:sourceBytesPerImage:sourceSize:to:destinationSlice:destinationLevel:destinationOrigin:options:) copy(from:sourceSlice:sourceLevel:sourceOrigin:sourceSize:to:destinationOffset:destinationBytesPerRow:destinationBytesPerImage:options:)

## See Also

### Depth and stencil buffer options

- [stencilFromDepthStencil](metal/mtlblitoption/stencilfromdepthstencil.md)
