---
title: stencilFromDepthStencil
framework: metal
role: symbol
role_heading: Type Property
path: metal/mtlblitoption/stencilfromdepthstencil
---

# stencilFromDepthStencil

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

## Declaration

```swift
static var stencilFromDepthStencil: 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

- [depthFromDepthStencil](metal/mtlblitoption/depthfromdepthstencil.md)
