GPU: device & frameSDL 3.2
SDL_GetGPUDeviceDriver
Tells which backend the device uses: "vulkan", "direct3d12" or "metal".
Signature
const char * SDL_GetGPUDeviceDriver(SDL_GPUDevice *device);
How it works
Log it at startup. It also tells you which shader format to load, though SDL_GetGPUShaderFormats answers that more directly.
Parameters
deviceSDL_GPUDevice *
The device.
Return value
The backend name (owned by SDL).
Example
example.cpp
1SDL_Log("GPU backend: %s", SDL_GetGPUDeviceDriver(device));