SDL_GetNumGPUDrivers(3)

✨ SDL_GetNumGPUDrivers ✨

okay bestie, this one is from the SDL3 FUNCTIONS manual and it is literally the chillest little function ever πŸ’…


🌸 NAME 🌸

SDL_GetNumGPUDrivers β€” get the number of GPU drivers compiled into SDL. no cap, that's the whole job 🫢

πŸ¦‹ SYNOPSIS πŸ¦‹

#include <SDL3/SDL_gpu.h>

int SDL_GetNumGPUDrivers(void);

πŸ’– RETURN VALUE πŸ’–

Returns the number of built in GPU drivers. that's it. that's the tea. ✨

πŸ‘‘ AVAILABILITY πŸ‘‘

This function is available since SDL 3.2.0. so if you're on something older, bestie, it's not gonna be there 😭

πŸŽ€ SEE ALSO πŸŽ€


source: Simple Directmedia Layer Β· version: SDL 3.4.18 Β· date: not listed in the original footer

πŸ“¦ where this page comes from