---
title: PerClothVertexData
framework: realitykit
role: symbol
role_heading: Structure
path: realitykit/perclothvertexdata
---

# PerClothVertexData

A generic type that stores per-vertex data in a buffer.

## Declaration

```swift
struct PerClothVertexData<ElementType>
```

## Topics

### Accessing vertex data

- [vertexCount](realitykit/perclothvertexdata/vertexcount.md)
- [withElements(_:)](realitykit/perclothvertexdata/withelements(_:).md)
- [mutableElements](realitykit/perclothvertexdata/mutableelements.md)
- [withMutableElements(_:)](realitykit/perclothvertexdata/withmutableelements(_:).md)

### Setting vertex values

- [set(vertexIndices:value:)](realitykit/perclothvertexdata/set(vertexindices:value:).md)
- [setAll(value:)](realitykit/perclothvertexdata/setall(value:).md)
- [reset()](realitykit/perclothvertexdata/reset()-1nlsc.md)
- [reset()](realitykit/perclothvertexdata/reset()-403m8.md)
- [reset()](realitykit/perclothvertexdata/reset()-4x5xi.md)

### Instance Properties

- [elements](realitykit/perclothvertexdata/elements.md)

### Instance Methods

- [reset()](realitykit/perclothvertexdata/reset().md)

## See Also

### Simulation and bodies

- [ClothSimulationComponent](realitykit/clothsimulationcomponent.md)
- [ClothBodyComponent](realitykit/clothbodycomponent.md)
- [ClothBodyMaterial](realitykit/clothbodymaterial.md)
- [ClothGrabComponent](realitykit/clothgrabcomponent.md)
- [ClothForceVolumeComponent](realitykit/clothforcevolumecomponent.md)
- [ClothQueryVolumeComponent](realitykit/clothqueryvolumecomponent.md)
- [ClothCoordinateSpace](realitykit/clothcoordinatespace.md)
