> ## Documentation Index
> Fetch the complete documentation index at: https://rive.app/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# ColorAttachment

Color attachment descriptor for canvas:beginRenderPass.

## Fields

### `view`

Optional render target view. Defaults to the receiving canvas's
own colorView() when omitted. Provide an explicit view for cases
where the target differs — most commonly MSAA, where `view` is the
multisampled GPUTexture:view() and `resolveTarget` is the canvas's
1× colorView().

### `resolveTarget`

1× resolve target for MSAA (formats must match `view`).

### `loadOp`

### `storeOp`

Required; 'discard' after MSAA resolve, 'store' otherwise.

### `clearColor`
