---
title: motionKeyframeCount
framework: metal
role: symbol
role_heading: Instance Property
path: metal/mtlprimitiveaccelerationstructuredescriptor/motionkeyframecount
---

# motionKeyframeCount

The number of keyframes in the geometry data.

## Declaration

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

## Discussion

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 objects.

## See Also

### Related Documentation

- [geometryDescriptors](metal/mtlprimitiveaccelerationstructuredescriptor/geometrydescriptors.md)

### Specifying motion behavior

- [motionStartTime](metal/mtlprimitiveaccelerationstructuredescriptor/motionstarttime.md)
- [motionEndTime](metal/mtlprimitiveaccelerationstructuredescriptor/motionendtime.md)
- [motionStartBorderMode](metal/mtlprimitiveaccelerationstructuredescriptor/motionstartbordermode.md)
- [motionEndBorderMode](metal/mtlprimitiveaccelerationstructuredescriptor/motionendbordermode.md)
- [MTLMotionBorderMode](metal/mtlmotionbordermode.md)
