---
name: "SDL_GPUColorComponentFlags"
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_GPUColorComponentFlags"
---

# SDL\_GPUColorComponentFlags(3type)

Specifies which color components are written in a graphics pipeline.

## NAME

SDL\_GPUColorComponentFlags - Specifies which color components are written in a graphics pipeline.

## HEADER FILE

Defined in SDL3/SDL\_gpu.h

## SYNOPSIS

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

**typedef Uint8 SDL\_GPUColorComponentFlags;** **#define SDL\_GPU\_COLORCOMPONENT\_R (1u \<\< 0) /\*\*\< the red component \*/** **#define SDL\_GPU\_COLORCOMPONENT\_G (1u \<\< 1) /\*\*\< the green component \*/** **#define SDL\_GPU\_COLORCOMPONENT\_B (1u \<\< 2) /\*\*\< the blue component \*/** **#define SDL\_GPU\_COLORCOMPONENT\_A (1u \<\< 3) /\*\*\< the alpha component \*/**

## AVAILABILITY

This datatype is available since SDL 3.2.0.

## SEE ALSO

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