---
name: "SDL_GPUBlendFactor"
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_GPUBlendFactor"
---

# SDL\_GPUBlendFactor(3type)

Specifies a blending factor to be used when pixels in a render target are blended with existing pixels in the texture.

## NAME

SDL\_GPUBlendFactor - Specifies a blending factor to be used when pixels in a render target are blended with existing pixels in the texture.

## HEADER FILE

Defined in SDL3/SDL\_gpu.h

## SYNOPSIS

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

**typedef enum SDL\_GPUBlendFactor** **{**     **SDL\_GPU\_BLENDFACTOR\_INVALID,**     **SDL\_GPU\_BLENDFACTOR\_ZERO,                      /\*\*\< 0 \*/**     **SDL\_GPU\_BLENDFACTOR\_ONE,                       /\*\*\< 1 \*/**     **SDL\_GPU\_BLENDFACTOR\_SRC\_COLOR,                 /\*\*\< source color \*/**     **SDL\_GPU\_BLENDFACTOR\_ONE\_MINUS\_SRC\_COLOR,       /\*\*\< 1 - source color \*/**     **SDL\_GPU\_BLENDFACTOR\_DST\_COLOR,                 /\*\*\< destination color \*/**     **SDL\_GPU\_BLENDFACTOR\_ONE\_MINUS\_DST\_COLOR,       /\*\*\< 1 - destination color \*/**     **SDL\_GPU\_BLENDFACTOR\_SRC\_ALPHA,                 /\*\*\< source alpha \*/**     **SDL\_GPU\_BLENDFACTOR\_ONE\_MINUS\_SRC\_ALPHA,       /\*\*\< 1 - source alpha \*/**     **SDL\_GPU\_BLENDFACTOR\_DST\_ALPHA,                 /\*\*\< destination alpha \*/**     **SDL\_GPU\_BLENDFACTOR\_ONE\_MINUS\_DST\_ALPHA,       /\*\*\< 1 - destination alpha \*/**     **SDL\_GPU\_BLENDFACTOR\_CONSTANT\_COLOR,            /\*\*\< blend constant \*/**     **SDL\_GPU\_BLENDFACTOR\_ONE\_MINUS\_CONSTANT\_COLOR,  /\*\*\< 1 - blend constant \*/**     **SDL\_GPU\_BLENDFACTOR\_SRC\_ALPHA\_SATURATE         /\*\*\< min(source alpha, 1 - destination alpha) \*/** **} SDL\_GPUBlendFactor;**

## DESCRIPTION

The source color is the value written by the fragment shader. The destination color is the value currently existing in the texture.

## AVAILABILITY

This enum is available since SDL 3.2.0.

## SEE ALSO

**•**(3), [**SDL\_CreateGPUGraphicsPipeline**(3)](/SDL_CreateGPUGraphicsPipeline/3.md)
