---
title: MTLPixelFormat.stencil8
framework: metal
role: symbol
role_heading: Case
path: metal/mtlpixelformat/stencil8
---

# MTLPixelFormat.stencil8

A pixel format with an 8-bit unsigned integer component, used for a stencil render target.

## Declaration

```swift
case stencil8
```

## See Also

### Depth and stencil pixel formats

- [MTLPixelFormat.depth16Unorm](metal/mtlpixelformat/depth16unorm.md)
- [MTLPixelFormat.depth32Float](metal/mtlpixelformat/depth32float.md)
- [MTLPixelFormat.depth24Unorm_stencil8](metal/mtlpixelformat/depth24unorm_stencil8.md)
- [MTLPixelFormat.depth32Float_stencil8](metal/mtlpixelformat/depth32float_stencil8.md)
- [MTLPixelFormat.x32_stencil8](metal/mtlpixelformat/x32_stencil8.md)
- [MTLPixelFormat.x24_stencil8](metal/mtlpixelformat/x24_stencil8.md)
