---
name: "SDL_GPUBlendOp"
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_GPUBlendOp"
---

# SDL\_GPUBlendOp(3type)

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

## NAME

SDL\_GPUBlendOp - Specifies the operator 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\_GPUBlendOp** **{**     **SDL\_GPU\_BLENDOP\_INVALID,**     **SDL\_GPU\_BLENDOP\_ADD,               /\*\*\< (source \* source\_factor) + (destination \* destination\_factor) \*/**     **SDL\_GPU\_BLENDOP\_SUBTRACT,          /\*\*\< (source \* source\_factor) - (destination \* destination\_factor) \*/**     **SDL\_GPU\_BLENDOP\_REVERSE\_SUBTRACT,  /\*\*\< (destination \* destination\_factor) - (source \* source\_factor) \*/**     **SDL\_GPU\_BLENDOP\_MIN,               /\*\*\< min(source, destination) \*/**     **SDL\_GPU\_BLENDOP\_MAX                /\*\*\< max(source, destination) \*/** **} SDL\_GPUBlendOp;**

## 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)
