<!--
{
  "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/MeshDeformationStack",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation20MeshDeformationStackV"
  },
  "title" : "MeshDeformationStack"
}
-->

# MeshDeformationStack

A set of `MeshDeformer`s to apply in order to a mesh, or a proper subset of the mesh specified by `Target`s.
If at any point, a deformer in the stack updates, all deformers later in the stack will also update.

```
struct MeshDeformationStack
```

## Topics

### Creating a deformation stack

[`init(deformers: [any MeshDeformer], targets: [MeshScope])`](/documentation/RealityKit/MeshDeformationStack/init(deformers:targets:))

Initializer deformers, and target configurations.

### Configuring deformation

[`var deformers: [any MeshDeformer]`](/documentation/RealityKit/MeshDeformationStack/deformers)

The `Deformers` to apply in order to a mesh.

[`var targets: [MeshScope]`](/documentation/RealityKit/MeshDeformationStack/targets)

The set of `MeshScope`s that will be deformed by the `MeshDeformationStack`.

### Comparing stacks

[`static func == (MeshDeformationStack, MeshDeformationStack) -> Bool`](/documentation/RealityKit/MeshDeformationStack/==(_:_:))

Returns a Boolean value indicating whether two values are equal.

### Initializers

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

Default empty initializer

## Relationships

### Conforms To

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

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

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

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

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

---

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)