---
title: triangleCount
framework: metal
role: symbol
role_heading: Instance Property
path: metal/mtl4accelerationstructuremotiontrianglegeometrydescriptor/trianglecount
---

# triangleCount

Declares the number of triangles in the vertex buffers that the buffer in the vertex buffers property references.

## Declaration

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

## Discussion

Discussion All keyframes share the same triangle count.
