---
title: "setColorStoreActionOptions(_:index:)"
framework: metal
role: symbol
role_heading: Instance Method
path: "metal/mtlparallelrendercommandencoder/setcolorstoreactionoptions(_:index:)"
---

# setColorStoreActionOptions(_:index:)

Specifies known store action options for a given color attachment.

## Declaration

```swift
func setColorStoreActionOptions(_ storeActionOptions: MTLStoreActionOptions, index colorAttachmentIndex: Int)
```

## Parameters

- `storeActionOptions`: The additional store action options for the color attachment.
- `colorAttachmentIndex`: The index of the color attachment.

## See Also

### Setting render pass state

- [setColorStoreAction(_:index:)](metal/mtlparallelrendercommandencoder/setcolorstoreaction(_:index:).md)
- [setDepthStoreAction(_:)](metal/mtlparallelrendercommandencoder/setdepthstoreaction(_:).md)
- [setDepthStoreActionOptions(_:)](metal/mtlparallelrendercommandencoder/setdepthstoreactionoptions(_:).md)
- [setStencilStoreAction(_:)](metal/mtlparallelrendercommandencoder/setstencilstoreaction(_:).md)
- [setStencilStoreActionOptions(_:)](metal/mtlparallelrendercommandencoder/setstencilstoreactionoptions(_:).md)
