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 π₯
SDL_Vulkan_GetInstanceExtensions(3)β the one you literally need first, go read it. fr fr.
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
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms