---
title: MTLRenderPipelineColorAttachmentDescriptor
framework: metal
role: symbol
role_heading: Class
path: metal/mtlrenderpipelinecolorattachmentdescriptor
---

# MTLRenderPipelineColorAttachmentDescriptor

A color render target that specifies the color configuration and color operations for a render pipeline.

## Declaration

```swift
class MTLRenderPipelineColorAttachmentDescriptor
```

## Overview

Overview An MTLRenderPipelineColorAttachmentDescriptor instance defines the configuration of a color attachment associated with a rendering pipeline. The pixelFormat property needs to be specified for the rendering pipeline state at the color attachment. Blend operations determine how a source fragment is combined with a destination value in a color attachment to determine the pixel value to be written. The following properties define whether and how blending is performed: The isBlendingEnabled property enables blending. The default value is false. The writeMask property identifies which color channels are blended. The default value is all, which allows all color channels to be blended. The rgbBlendOperation and alphaBlendOperation properties assign the blend operations for RGB and alpha pixel data. The default value for both properties is MTLBlendOperation.add. The sourceRGBBlendFactor, sourceAlphaBlendFactor, destinationRGBBlendFactor, and destinationAlphaBlendFactor properties assign the source and destination blend factors. The default value for sourceRGBBlendFactor and sourceAlphaBlendFactor is MTLBlendFactor.one. The default value for destinationRGBBlendFactor and destinationAlphaBlendFactor is MTLBlendFactor.zero.

## Topics

### Configuring render pipeline states

- [pixelFormat](metal/mtlrenderpipelinecolorattachmentdescriptor/pixelformat.md)
- [writeMask](metal/mtlrenderpipelinecolorattachmentdescriptor/writemask.md)
- [MTLColorWriteMask](metal/mtlcolorwritemask.md)

### Controlling blend operations

- [isBlendingEnabled](metal/mtlrenderpipelinecolorattachmentdescriptor/isblendingenabled.md)
- [alphaBlendOperation](metal/mtlrenderpipelinecolorattachmentdescriptor/alphablendoperation.md)
- [rgbBlendOperation](metal/mtlrenderpipelinecolorattachmentdescriptor/rgbblendoperation.md)
- [MTLBlendOperation](metal/mtlblendoperation.md)

### Configuring blend factors

- [destinationAlphaBlendFactor](metal/mtlrenderpipelinecolorattachmentdescriptor/destinationalphablendfactor.md)
- [destinationRGBBlendFactor](metal/mtlrenderpipelinecolorattachmentdescriptor/destinationrgbblendfactor.md)
- [sourceAlphaBlendFactor](metal/mtlrenderpipelinecolorattachmentdescriptor/sourcealphablendfactor.md)
- [sourceRGBBlendFactor](metal/mtlrenderpipelinecolorattachmentdescriptor/sourcergbblendfactor.md)
- [MTLBlendFactor](metal/mtlblendfactor.md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSCopying](foundation/nscopying.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Render pipeline states

- [MTLRenderPipelineState](metal/mtlrenderpipelinestate.md)
- [MTL4RenderPipelineDescriptor](metal/mtl4renderpipelinedescriptor.md)
- [MTLRenderPipelineDescriptor](metal/mtlrenderpipelinedescriptor.md)
- [MTLRenderPipelineFunctionsDescriptor](metal/mtlrenderpipelinefunctionsdescriptor.md)
- [MTL4MeshRenderPipelineDescriptor](metal/mtl4meshrenderpipelinedescriptor.md)
- [MTLMeshRenderPipelineDescriptor](metal/mtlmeshrenderpipelinedescriptor.md)
- [MTLPipelineBufferDescriptor](metal/mtlpipelinebufferdescriptor.md)
- [MTLPipelineBufferDescriptorArray](metal/mtlpipelinebufferdescriptorarray.md)
- [MTL4RenderPipelineColorAttachmentDescriptor](metal/mtl4renderpipelinecolorattachmentdescriptor.md)
- [MTLRenderPipelineColorAttachmentDescriptorArray](metal/mtlrenderpipelinecolorattachmentdescriptorarray.md)
- [MTL4TileRenderPipelineDescriptor](metal/mtl4tilerenderpipelinedescriptor.md)
- [MTLTileRenderPipelineDescriptor](metal/mtltilerenderpipelinedescriptor.md)
- [MTLTileRenderPipelineColorAttachmentDescriptor](metal/mtltilerenderpipelinecolorattachmentdescriptor.md)
- [MTLPipelineOption](metal/mtlpipelineoption.md)
- [MTL4RenderPipelineBinaryFunctionsDescriptor](metal/mtl4renderpipelinebinaryfunctionsdescriptor.md)
