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

# MTLStoreAction

Types of actions performed for an attachment at the end of a rendering pass.

```
enum MTLStoreAction
```

## Topics

### Store actions

[`MTLStoreActionDontCare`](/documentation/Metal/MTLStoreAction/dontCare)

The GPU has permission to discard the rendered contents of the attachment at the end of the render pass, replacing them with arbitrary data.

[`MTLStoreActionStore`](/documentation/Metal/MTLStoreAction/store)

The GPU stores the rendered contents to the texture.

[`MTLStoreActionMultisampleResolve`](/documentation/Metal/MTLStoreAction/multisampleResolve)

The GPU resolves the multisampled data to one sample per pixel and stores the data to the resolve texture, discarding the multisample data afterwards.

[`MTLStoreActionStoreAndMultisampleResolve`](/documentation/Metal/MTLStoreAction/storeAndMultisampleResolve)

The GPU stores the multisample data to the multisample texture, resolves the data to a sample per pixel, and stores the data to the resolve texture.

[`MTLStoreActionUnknown`](/documentation/Metal/MTLStoreAction/unknown)

The system selects a store action when it encodes the render pass.

[`MTLStoreActionCustomSampleDepthStore`](/documentation/Metal/MTLStoreAction/customSampleDepthStore)

The GPU stores depth data in a sample-position–agnostic representation.

## Relationships

### Conforms To

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

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

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

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

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

[`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)