---
name: "SDL_PixelFormatDetails"
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_PixelFormatDetails"
---

# SDL\_PixelFormatDetails(3type)

Details about the format of a pixel.

## NAME

SDL\_PixelFormatDetails - Details about the format of a pixel.

## HEADER FILE

Defined in SDL3/SDL\_pixels.h

## SYNOPSIS

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

**typedef struct SDL\_PixelFormatDetails** **{**     **SDL\_PixelFormat format;**     **Uint8 bits\_per\_pixel;**     **Uint8 bytes\_per\_pixel;**     **Uint8 padding\[2\];**     **Uint32 Rmask;**     **Uint32 Gmask;**     **Uint32 Bmask;**     **Uint32 Amask;**     **Uint8 Rbits;**     **Uint8 Gbits;**     **Uint8 Bbits;**     **Uint8 Abits;**     **Uint8 Rshift;**     **Uint8 Gshift;**     **Uint8 Bshift;**     **Uint8 Ashift;** **} SDL\_PixelFormatDetails;**

## AVAILABILITY

This struct is available since SDL 3.2.0.
