SDL_Vulkan_G...tationSupport(3)

πŸ’… SDL_Vulkan_GetPresentationSupport β€” the tea β˜•

okay bestie, so this one lives in the SDL3 FUNCTIONS era of the SDL_Vulkan_G...tationSupport(3) page (yes the title got truncated, it's giving "long name problems", iconic honestly). What it does: queries whether presentation is even supported via a given physical device AND a given queue family. That's it. That's the whole vibe. ✨


✨ NAME ✨

SDL_Vulkan_GetPresentationSupport β€” Query support for presentation via a given physical device and queue family.

like… does this device + this queue family combo actually do presentation? asking for a friend. πŸ¦‹


🌸 SYNOPSIS 🌸

#include <SDL3/SDL_vulkan.h>

bool SDL_Vulkan_GetPresentationSupport(VkInstance instance,
                                       VkPhysicalDevice physicalDevice,
                                       Uint32 queueFamilyIndex);

no cap, that's the exact signature, don't @ me. πŸ’–


πŸŽ€ DESCRIPTION πŸŽ€

The instance must have been created with the extensions returned by SDL_Vulkan_GetInstanceExtensions() enabled.

bestie listen. this is not optional. if your instance wasn't made with those extensions enabled, that's a problem, and not the cute kind. 😭

🫢 FUNCTION PARAMETERS 🫢

  • instance β€” the Vulkan instance handle. the main character, honestly. πŸ‘‘
  • physicalDevice β€” a valid Vulkan physical device handle. gotta be valid, we don't do invalid here. ✨
  • queueFamilyIndex β€” a valid queue family index for the given physical device. yes, for that specific device, they're a package deal. πŸ’ž

πŸ’€ RETURN VALUE πŸ’€

Returns true if supported, false if unsupported or an error occurred.

so like… true = slay, false = either "nope not supported" or "something went wrong", and the function is not gonna tell you which one, it's mysterious like that. πŸ™ˆ


🌈 AVAILABILITY 🌈

This function is available since SDL 3.2.0.

so if you're on something older than 3.2.0, sorry babe, no function for you. πŸ’…


πŸ”₯ SEE ALSO πŸ”₯


and that's the whole page, periodt. πŸ’–βœ¨

Simple Directmedia Layer made this, it's SDL 3.4.18, and it's filed under SDL3 FUNCTIONS. mwah, go forth and present responsibly. πŸŽ€πŸ¦‹πŸŒΈπŸ’…

πŸ“¦ where this page comes from