SDL Wiki
(This is the documentation for SDL3, which is the current stable version. SDL2 was the previous version!)

SDL_Vulkan_GetPresentationSupport

Query support for presentation via a given physical device and queue family.

Header File

Defined in <SDL3/SDL_vulkan.h>

Syntax

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

Function Parameters

VkInstance instance the Vulkan instance handle.
VkPhysicalDevice physicalDevice a valid Vulkan physical device handle.
Uint32 queueFamilyIndex a valid queue family index for the given physical device.

Return Value

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

Remarks

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

Version

This function is available since SDL 3.1.3.

See Also


CategoryAPI, CategoryAPIFunction, CategoryVulkan


[ edit | delete | history | feedback | raw ]

[ front page | index | search | recent changes | git repo | offline html ]

All wiki content is licensed under Creative Commons Attribution 4.0 International (CC BY 4.0).
Wiki powered by ghwikipp.