sdlGetNumGpuDrivers function

int sdlGetNumGpuDrivers()

Get the number of GPU drivers compiled into SDL.

\returns the number of built in GPU drivers.

\since This function is available since SDL 3.1.3.

\sa SDL_GetGPUDriver

extern SDL_DECLSPEC int SDLCALL SDL_GetNumGPUDrivers(void)

Implementation

int sdlGetNumGpuDrivers() {
  final sdlGetNumGpuDriversLookupFunction = libSdl3
      .lookupFunction<Int32 Function(), int Function()>('SDL_GetNumGPUDrivers');
  return sdlGetNumGpuDriversLookupFunction();
}