---
title: colorAttachments
framework: metal
role: symbol
role_heading: Instance Property
path: metal/mtlrenderpassdescriptor/colorattachments
---

# colorAttachments

An array of state information for attachments that store color data.

## Declaration

```swift
var colorAttachments: MTLRenderPassColorAttachmentDescriptorArray { get }
```

## See Also

### Specifying the attachments for a rendering pass

- [depthAttachment](metal/mtlrenderpassdescriptor/depthattachment.md)
- [stencilAttachment](metal/mtlrenderpassdescriptor/stencilattachment.md)
