---
name: "SDL_GetGPUDeviceDriver"
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_GetGPUDeviceDriver"
---

# SDL\_GetGPUDeviceDriver(3)

Returns the name of the backend used to create this GPU context.

## NAME

SDL\_GetGPUDeviceDriver - Returns the name of the backend used to create this GPU context.

## HEADER FILE

Defined in SDL3/SDL\_gpu.h

## SYNOPSIS

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

**const char \* SDL\_GetGPUDeviceDriver(SDL\_GPUDevice \*device);**

## FUNCTION PARAMETERS

- *device*

  a GPU context to query.

## RETURN VALUE

Returns the name of the device's driver, or NULL on error.

## AVAILABILITY

This function is available since SDL 3.2.0.
