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

# SDL\_GetNumGPUDrivers(3)

Get the number of GPU drivers compiled into SDL.

## NAME

SDL\_GetNumGPUDrivers - Get the number of GPU drivers compiled into SDL.

## HEADER FILE

Defined in SDL3/SDL\_gpu.h

## SYNOPSIS

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

**int SDL\_GetNumGPUDrivers(void);**

## RETURN VALUE

Returns the number of built in GPU drivers.

## AVAILABILITY

This function is available since SDL 3.2.0.

## SEE ALSO

**•**(3), [**SDL\_GetGPUDriver**(3)](/SDL_GetGPUDriver/3.md)
