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

# MTLPixelFormat.depth32Float_stencil8

A 40-bit combined depth and stencil pixel format with a 32-bit floating-point value for depth and an 8-bit unsigned integer for stencil.

## Declaration

```swift
case depth32Float_stencil8
```

## Discussion

Discussion When using this format, some Metal device objects allocate 64-bits per pixel.

## See Also

### Depth and stencil pixel formats

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