<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 12.0.0 -",
    "tvOS: 16.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Metal",
  "identifier" : "/documentation/Metal/MTLMotionBorderMode",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Metal"
    ],
    "preciseIdentifier" : "c:@E@MTLMotionBorderMode"
  },
  "title" : "MTLMotionBorderMode"
}
-->

# MTLMotionBorderMode

Options for specifying how the acceleration structure handles timestamps that are outside the specified range.

```
enum MTLMotionBorderMode
```

## Overview

The [`motionStartBorderMode`](/documentation/Metal/MTLPrimitiveAccelerationStructureDescriptor/motionStartBorderMode) and [`motionEndBorderMode`](/documentation/Metal/MTLPrimitiveAccelerationStructureDescriptor/motionEndBorderMode) properties use this type to describe the behavior for a motion-based object when a timestamp is outside the specified range.

## Topics

### Specifying motion modes

[`MTLMotionBorderMode.clamp`](/documentation/Metal/MTLMotionBorderMode/clamp)

A mode that specifies treating times outside the specified endpoint as if they were at the endpoint.

[`MTLMotionBorderMode.vanish`](/documentation/Metal/MTLMotionBorderMode/vanish)

A mode that specifies that times outside the specified endpoint need to prevent any ray-intersections with the primitive.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)