---
title: vertexBuffer
framework: metal
role: symbol
role_heading: Instance Property
path: metal/mtl4accelerationstructuretrianglegeometrydescriptor/vertexbuffer
---

# vertexBuffer

Associates a vertex buffer containing triangle vertices.

## Declaration

```swift
var vertexBuffer: MTL4BufferRange { get set }
```

## Discussion

Discussion You are responsible for ensuring that the format of all vertex positions match the vertexFormat property, and that the buffer address for the buffer range is not zero.
