<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -",
    "macOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/MeshDeformerOptions",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation19MeshDeformerOptionsV"
  },
  "title" : "MeshDeformerOptions"
}
-->

# MeshDeformerOptions

Specifies constant options for `MeshDeformer`

```
struct MeshDeformerOptions
```

## Topics

### Creating deformer options

[`init(cadence: MeshDeformerOptions.Cadence, inputSpec: MeshDeformerVertexOptions, outputSpec: MeshDeformerVertexOptions)`](/documentation/RealityKit/MeshDeformerOptions/init(cadence:inputSpec:outputSpec:))

specify your own cadence and read / write options

### Specifying vertex data

[`let inputSpec: MeshDeformerVertexOptions`](/documentation/RealityKit/MeshDeformerOptions/inputSpec)

The expected vertex buffer input spec for the deformer type.

[`let outputSpec: MeshDeformerVertexOptions`](/documentation/RealityKit/MeshDeformerOptions/outputSpec)

The expected vertex buffer output spec for the deformer type.

### Configuring the cadence

[`let cadence: MeshDeformerOptions.Cadence`](/documentation/RealityKit/MeshDeformerOptions/cadence-swift.property)

Determines the update frequence for the defomer type.

[`enum Cadence`](/documentation/RealityKit/MeshDeformerOptions/Cadence-swift.enum)

Specifies when RealityKit applies the custom deformer functions.

### Initializers

[`init()`](/documentation/RealityKit/MeshDeformerOptions/init())

defaults to on demand, and reads and writes positions only

## Relationships

### Conforms To

[`Sendable`](/documentation/Swift/Sendable)

[`Encodable`](/documentation/Swift/Encodable)

[`Decodable`](/documentation/Swift/Decodable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Equatable`](/documentation/Swift/Equatable)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)