SDL_HINT_VULKAN_DISPLAY(3)

πŸ’– SDL_HINT_VULKAN_DISPLAY πŸ’–

okay bestie, welcome to the SDL3 FUNCTIONS page for SDL_HINT_VULKAN_DISPLAY β€” yes it's a whole manual page, yes it's giving lore, and yes we're gonna read it together 🫢


✨ NAME ✨

SDL_HINT_VULKAN_DISPLAY β€” a variable that overrides the display index used in SDL_Vulkan_CreateSurface() πŸ‘‘

🌸 SYNOPSIS 🌸

#include <SDL3/SDL_hints.h>

#define SDL_HINT_VULKAN_DISPLAY "SDL_VULKAN_DISPLAY"

πŸ’… DESCRIPTION πŸ’…

so basically the display index starts at 0, and 0 is the default. that's it, that's the vibe. zero-indexed girlies stay winning ✨

lowkey important: this hint should be set before calling SDL_Vulkan_CreateSurface() β€” not after, not during, before. periodt. πŸ’…

πŸ¦‹ AVAILABILITY πŸ¦‹

this hint is available since SDL 3.2.0 β€” so if you're on something older, it's not gonna show up for you, no cap 😭


and that's the whole page, bestie!! 🌈 this little icon was brought to you by Simple Directmedia Layer, running the SDL 3.4.18 era, and this exact page is SDL_HINT_VULKAN_DISPLAY(3) β€” love that for us. mwah, go slay your Vulkan surfaces πŸ’–πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from