---
title: MTLMultisampleDepthResolveFilter.max
framework: metal
role: symbol
role_heading: Case
path: metal/mtlmultisampledepthresolvefilter/max
---

# MTLMultisampleDepthResolveFilter.max

The GPU compares all depth samples in the pixel and selects the sample with the largest value.

## Declaration

```swift
case max
```

## See Also

### Depth resolve filters

- [MTLMultisampleDepthResolveFilter.sample0](metal/mtlmultisampledepthresolvefilter/sample0.md)
- [MTLMultisampleDepthResolveFilter.min](metal/mtlmultisampledepthresolvefilter/min.md)
