---
title: vertexBuffers
framework: modelio
role: symbol
role_heading: Instance Property
path: modelio/mdlmesh/vertexbuffers
---

# vertexBuffers

The array of buffers that provide vertex data for the mesh.

## Declaration

```swift
var vertexBuffers: [any MDLMeshBuffer] { get set }
```

## Discussion

Discussion A mesh contains vertex data organized in one of two designs: as a structure of arrays or as an array of structures. In a structure of arrays, the mesh contains multiple vertex buffers, each of which provides data for a different vertex attribute, and a single vertex is the union of data from the same index in each of the separate buffers. In an array of structures, the mesh contains a single vertex buffer, and each index in the vertex buffer contains data for all vertex attributes. Use the vertexDescriptor property to determine the structure of the mesh’s vertex data.

## See Also

### Working with Vertex Data

- [boundingBox](modelio/mdlmesh/boundingbox.md)
- [submeshes](modelio/mdlmesh/submeshes.md)
- [vertexCount](modelio/mdlmesh/vertexcount.md)
- [vertexDescriptor](modelio/mdlmesh/vertexdescriptor.md)
- [allocator](modelio/mdlmesh/allocator.md)
- [addAttribute(withName:format:)](modelio/mdlmesh/addattribute(withname:format:).md)
- [addAttribute(withName:format:type:data:stride:)](modelio/mdlmesh/addattribute(withname:format:type:data:stride:).md)
- [addAttribute(withName:format:type:data:stride:time:)](modelio/mdlmesh/addattribute(withname:format:type:data:stride:time:).md)
- [removeAttributeNamed(_:)](modelio/mdlmesh/removeattributenamed(_:).md)
- [replaceAttributeNamed(_:with:)](modelio/mdlmesh/replaceattributenamed(_:with:).md)
- [updateAttributeNamed(_:with:)](modelio/mdlmesh/updateattributenamed(_:with:).md)
- [addUnwrappedTextureCoordinates(forAttributeNamed:)](modelio/mdlmesh/addunwrappedtexturecoordinates(forattributenamed:).md)
- [vertexAttributeData(forAttributeNamed:)](modelio/mdlmesh/vertexattributedata(forattributenamed:).md)
- [vertexAttributeData(forAttributeNamed:as:)](modelio/mdlmesh/vertexattributedata(forattributenamed:as:).md)
