<!--
{
  "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

[`MTLStoreAction.dontCare`](/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.

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

The GPU stores the rendered contents to the texture.

[`MTLStoreAction.multisampleResolve`](/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.

[`MTLStoreAction.storeAndMultisampleResolve`](/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.

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

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

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

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



---

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)