---
title: MTLMutability
framework: metal
role: symbol
role_heading: Enumeration
path: metal/mtlmutability
---

# MTLMutability

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

## Declaration

```swift
enum MTLMutability
```

## Topics

### Enumeration cases

- [MTLMutability.default](metal/mtlmutability/default.md)
- [MTLMutability.mutable](metal/mtlmutability/mutable.md)
- [MTLMutability.immutable](metal/mtlmutability/immutable.md)

### Initializers

- [init(rawValue:)](metal/mtlmutability/init(rawvalue:).md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Setting buffer mutability

- [mutability](metal/mtlpipelinebufferdescriptor/mutability.md)
