---
title: vertexFormat
framework: metal
role: symbol
role_heading: Instance Property
path: metal/mtlaccelerationstructuretrianglegeometrydescriptor/vertexformat
---

# vertexFormat

The format of each vertex position in the vertex buffer property.

## Declaration

```swift
var vertexFormat: MTLAttributeFormat { get set }
```

## Discussion

Discussion Set this property to a value that represents the pixel format of the data you assign to the vertexBuffer property. The property’s default is MTLAttributeFormat.float3.

## See Also

### Configuring vertex data

- [vertexBuffer](metal/mtlaccelerationstructuretrianglegeometrydescriptor/vertexbuffer.md)
- [vertexBufferOffset](metal/mtlaccelerationstructuretrianglegeometrydescriptor/vertexbufferoffset.md)
- [vertexStride](metal/mtlaccelerationstructuretrianglegeometrydescriptor/vertexstride.md)
