logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

SDL_Vulkan_GetInstanceExtensions - Get the Vulkan instance extensions needed for vkCreateInstance.

Availability

       This function is available since SDL 3.2.0.

Description

       This  should  be  called after either calling SDL_Vulkan_LoadLibrary() or creating an SDL_Window with the
       SDL_WINDOW_VULKAN flag.

       On return, the variable pointed to by count will be set to the number of elements returned, suitable  for
       using  with  VkInstanceCreateInfo::enabledExtensionCount,  and  the  returned  array  can  be  used  with
       VkInstanceCreateInfo::ppEnabledExtensionNames, for calling Vulkan's vkCreateInstance API.

       You should not free the returned array; it is owned by SDL.

Function Parameters

count  a pointer filled in with the number of extensions returned.

Name

       SDL_Vulkan_GetInstanceExtensions - Get the Vulkan instance extensions needed for vkCreateInstance.

Return Value

       for more information.

See Also

SDL_Vulkan_CreateSurface(3)

Simple Directmedia Layer                           SDL 3.2.20                SDL_Vulkan_GetInstanceExtensions(3)

Synopsis

#include<SDL3/SDL_vulkan.h>charconst*const*SDL_Vulkan_GetInstanceExtensions(Uint32*count);

See Also