SDL_GetGPUDeviceDriver(3)

SDL_GetGPUDeviceDriver3

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

Usage

#include "SDL3/SDL.h"

const char * SDL_GetGPUDeviceDriver(SDL_GPUDevice *device);

Header file

Defined in SDL3/SDL_gpu.h

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.

From libsdl3-doc 3.2.10+ds-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.