SDL_HINT_GPU_DRIVER(3)

🌸 NAME 🌸

okay bestie, meet SDL_HINT_GPU_DRIVER from the SDL3 FUNCTIONS manual β€” it's a variable that specifies a GPU backend to use. πŸ’…

✨ SYNOPSIS ✨

#include <SDL3/SDL_hints.h>

#define SDL_HINT_GPU_DRIVER "SDL_GPU_DRIVER"

πŸ¦‹ DESCRIPTION πŸ¦‹

By default, SDL is out here trying all available GPU backends in a reasonable order until it finds one that can actually work. iconic behavior, honestly.

But this hint? It lets the app or the user force a specific target. Like, say your hardware supports Vulkan but you're feeling spicy and want to try using D3D12 instead β€” you'd pass something like "direct3d12". slay.

⚠️ Set this hint before any GPU functions are called. no cap. if you're late, that's not the vibe.

🌈 AVAILABILITY 🌈

This hint has been available since SDL 3.2.0. 🫢


Simple Directmedia Layer Β· SDL 3.4.18 Β· SDL_HINT_GPU_DRIVER(3) β€” that's the source/version and page name, bestie. mwah. πŸ’–

πŸ“¦ where this page comes from