<!--
{
  "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/MTLMotionKeyframeData",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Metal"
    ],
    "preciseIdentifier" : "c:objc(cs)MTLMotionKeyframeData"
  },
  "title" : "MTLMotionKeyframeData"
}
-->

# MTLMotionKeyframeData

Geometry data for a specific keyframe to use in a moving instance.

```
class MTLMotionKeyframeData
```

## Overview

An [`MTLMotionKeyframeData`](/documentation/Metal/MTLMotionKeyframeData) instance describes the location of geometry data for a keyframe. The exact type of data can vary, depending on which kind of motion descriptor you create. For an [`MTLAccelerationStructureMotionBoundingBoxGeometryDescriptor`](/documentation/Metal/MTLAccelerationStructureMotionBoundingBoxGeometryDescriptor) instance, the buffer data is a list of bounding boxes. For an [`MTLAccelerationStructureMotionTriangleGeometryDescriptor`](/documentation/Metal/MTLAccelerationStructureMotionTriangleGeometryDescriptor), the buffer data is a list of vertices.

## Topics

### Creating a motion keyframe data instance

[`data`](/documentation/Metal/MTLMotionKeyframeData/data)

Creates a new keyframe object.

### Specifying the keyframe data

[`buffer`](/documentation/Metal/MTLMotionKeyframeData/buffer)

The buffer that holds the geometry data.

[`offset`](/documentation/Metal/MTLMotionKeyframeData/offset)

The offset, in bytes, to the keyframe data.



---

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)