---
title: MTLStoreAction.dontCare
framework: metal
role: symbol
role_heading: Case
path: metal/mtlstoreaction/dontcare
---

# 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.

## Declaration

```swift
case dontCare
```

## Mentioned in

Setting load and store actions

## Discussion

Discussion Use this option when you need the attachment’s contents during the render pass but not afterwards. Some GPUs may still store the contents back to the texture, but you can’t rely on that behavior. You need to assume that GPU discarded the texture’s contents.

## See Also

### Store actions

- [MTLStoreAction.store](metal/mtlstoreaction/store.md)
- [MTLStoreAction.multisampleResolve](metal/mtlstoreaction/multisampleresolve.md)
- [MTLStoreAction.storeAndMultisampleResolve](metal/mtlstoreaction/storeandmultisampleresolve.md)
- [MTLStoreAction.unknown](metal/mtlstoreaction/unknown.md)
- [MTLStoreAction.customSampleDepthStore](metal/mtlstoreaction/customsampledepthstore.md)
