---
name: "SDL_GPUColorTargetBlendState"
section: "3type"
platform: "linux"
package: "libsdl3-doc"
version: "3.2.10+ds-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/SDL_GPUColorTargetBlendState"
---

# SDL\_GPUColorTargetBlendState(3type)

A structure specifying the blend state of a color target.

## NAME

SDL\_GPUColorTargetBlendState - A structure specifying the blend state of a color target.

## HEADER FILE

Defined in SDL3/SDL\_gpu.h

## SYNOPSIS

```
#include "SDL3/SDL.h"
```

**typedef struct SDL\_GPUColorTargetBlendState** **{**     **SDL\_GPUBlendFactor src\_color\_blendfactor;     /\*\*\< The value to be multiplied by the source RGB value. \*/**     **SDL\_GPUBlendFactor dst\_color\_blendfactor;     /\*\*\< The value to be multiplied by the destination RGB value. \*/**     **SDL\_GPUBlendOp color\_blend\_op;                /\*\*\< The blend operation for the RGB components. \*/**     **SDL\_GPUBlendFactor src\_alpha\_blendfactor;     /\*\*\< The value to be multiplied by the source alpha. \*/**     **SDL\_GPUBlendFactor dst\_alpha\_blendfactor;     /\*\*\< The value to be multiplied by the destination alpha. \*/**     **SDL\_GPUBlendOp alpha\_blend\_op;                /\*\*\< The blend operation for the alpha component. \*/**     **SDL\_GPUColorComponentFlags color\_write\_mask;  /\*\*\< A bitmask specifying which of the RGBA components are enabled for writing. Writes to all channels if enable\_color\_write\_mask is false. \*/**     **bool enable\_blend;                        /\*\*\< Whether blending is enabled for the color target. \*/**     **bool enable\_color\_write\_mask;             /\*\*\< Whether the color write mask is enabled. \*/**     **Uint8 padding1;**     **Uint8 padding2;** **} SDL\_GPUColorTargetBlendState;**

## AVAILABILITY

This struct is available since SDL 3.2.0.

## SEE ALSO

**•**(3), [**SDL\_GPUColorTargetDescription**(3type)](/SDL_GPUColorTargetDescription/3type.md)
