SDL Wiki
(This is the documentation for SDL3, which is under heavy development and the API is changing! SDL2 is the current stable 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

SDL_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

(SDL_bool) Returns SDL_TRUE if supported, SDL_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.0.0.

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.