Scroll to navigation

SDL_Vulkan_GetPresentationSupport(3) SDL3 FUNCTIONS SDL_Vulkan_GetPresentationSupport(3)

NAME

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

HEADER FILE

Defined in SDL3/SDL_vulkan.h

SYNOPSIS

#include "SDL3/SDL.h"
bool SDL_Vulkan_GetPresentationSupport(VkInstance instance,
                                           VkPhysicalDevice physicalDevice,
                                           Uint32 queueFamilyIndex);

DESCRIPTION

The instance must have been created with extensions returned by

SDL_Vulkan_GetInstanceExtensions () enabled.

FUNCTION PARAMETERS

the Vulkan instance handle.
a valid Vulkan physical device handle.
a valid queue family index for the given physical device.

RETURN VALUE

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

AVAILABILITY

This function is available since SDL 3.1.3.

SEE ALSO

(3), SDL_Vulkan_GetInstanceExtensions(3)

SDL 3.1.6 Simple Directmedia Layer