<!--
{
  "availability" : [
    "iOS: 11.0.0 -",
    "iPadOS: 11.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.13.0 -",
    "tvOS: 11.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Metal",
  "identifier" : "/documentation/Metal/MTLMutability",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Metal"
    ],
    "preciseIdentifier" : "c:@E@MTLMutability"
  },
  "title" : "MTLMutability"
}
-->

# MTLMutability

The options that determine the mutability of a buffer’s contents.

```
enum MTLMutability
```

## Topics

### Enumeration cases

[`MTLMutability.default`](/documentation/Metal/MTLMutability/default)

The default behavior, based on the buffer’s type.

[`MTLMutability.mutable`](/documentation/Metal/MTLMutability/mutable)

An option that states that you can modify the buffer’s contents.

[`MTLMutability.immutable`](/documentation/Metal/MTLMutability/immutable)

An option that states that you can’t modify the buffer’s contents.



---

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)