---
title: MPSIntersectionType.nearest
framework: metalperformanceshaders
role: symbol
role_heading: Case
path: metalperformanceshaders/mpsintersectiontype/nearest
---

# MPSIntersectionType.nearest

## Declaration

```swift
case nearest
```
