SDL_GetGPUDeviceDriver - Man Page

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.

Referenced By

SDL_CreateGPUDevice(3), SDL_CreateGPUDeviceWithProperties(3).

SDL 3.2.2 Simple Directmedia Layer SDL3 FUNCTIONS