---
title: MPSRayOriginMaskDirectionMaxDistance
framework: metalperformanceshaders
role: symbol
role_heading: Structure
path: metalperformanceshaders/mpsrayoriginmaskdirectionmaxdistance
---

# MPSRayOriginMaskDirectionMaxDistance

A 3D ray with an origin, a direction, and a mask to filter out intersections.

## Declaration

```swift
struct MPSRayOriginMaskDirectionMaxDistance
```

## Topics

### Initializers

- [init()](metalperformanceshaders/mpsrayoriginmaskdirectionmaxdistance/init().md)
- [init(origin:mask:direction:maxDistance:)](metalperformanceshaders/mpsrayoriginmaskdirectionmaxdistance/init(origin:mask:direction:maxdistance:).md)

### Instance Properties

- [direction](metalperformanceshaders/mpsrayoriginmaskdirectionmaxdistance/direction.md)
- [mask](metalperformanceshaders/mpsrayoriginmaskdirectionmaxdistance/mask.md)
- [maxDistance](metalperformanceshaders/mpsrayoriginmaskdirectionmaxdistance/maxdistance.md)
- [origin](metalperformanceshaders/mpsrayoriginmaskdirectionmaxdistance/origin.md)

## Relationships

### Conforms To

- [Sendable](swift/sendable.md)

## See Also

### Structures

- [MPSCustomKernelArgumentCount](metalperformanceshaders/mpscustomkernelargumentcount.md)
- [MPSCustomKernelInfo](metalperformanceshaders/mpscustomkernelinfo.md)
- [MPSCustomKernelSourceInfo](metalperformanceshaders/mpscustomkernelsourceinfo.md)
- [MPSDimensionSlice](metalperformanceshaders/mpsdimensionslice.md)
- [MPSImageCoordinate](metalperformanceshaders/mpsimagecoordinate.md)
- [MPSImageRegion](metalperformanceshaders/mpsimageregion.md)
- [MPSIntegerDivisionParams](metalperformanceshaders/mpsintegerdivisionparams.md)
- [MPSIntersectionDistance](metalperformanceshaders/mpsintersectiondistance.md)
- [MPSIntersectionDistancePrimitiveIndex](metalperformanceshaders/mpsintersectiondistanceprimitiveindex.md)
- [MPSIntersectionDistancePrimitiveIndexBufferIndex](metalperformanceshaders/mpsintersectiondistanceprimitiveindexbufferindex.md)
- [MPSIntersectionDistancePrimitiveIndexBufferIndexCoordinates](metalperformanceshaders/mpsintersectiondistanceprimitiveindexbufferindexcoordinates.md)
- [MPSIntersectionDistancePrimitiveIndexBufferIndexInstanceIndex](metalperformanceshaders/mpsintersectiondistanceprimitiveindexbufferindexinstanceindex.md)
- [MPSIntersectionDistancePrimitiveIndexBufferIndexInstanceIndexCoordinates](metalperformanceshaders/mpsintersectiondistanceprimitiveindexbufferindexinstanceindexcoordinates.md)
- [MPSIntersectionDistancePrimitiveIndexCoordinates](metalperformanceshaders/mpsintersectiondistanceprimitiveindexcoordinates.md)
- [MPSIntersectionDistancePrimitiveIndexInstanceIndex](metalperformanceshaders/mpsintersectiondistanceprimitiveindexinstanceindex.md)
