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

# triangleCount

Declares the number of triangles in this geometry descriptor.

## Declaration

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