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

# motionKeyframeCount

The number of keyframes in the geometry data.

```
var motionKeyframeCount: Int { get set }
```

## Discussion

The default value is `1`. If the value is greater than `1`, all geometry descriptors that you attach to this descriptor need to be motion descriptors, and each needs to have exactly that many [`MTLMotionKeyframeData`](/documentation/Metal/MTLMotionKeyframeData) objects.

## See Also

[`geometryDescriptors`](/documentation/Metal/MTLPrimitiveAccelerationStructureDescriptor/geometryDescriptors)

An array that contains the individual pieces of geometry that compose the acceleration structure.



---

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)