---
name: "SDL_Vulkan_GetInstanceExtensions"
section: "3"
platform: "linux"
package: "libsdl3-doc"
version: "3.2.10+ds-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/SDL_Vulkan_GetInstanceExtensions"
---

# SDL\_Vulkan\_GetInstanceExtensions(3)

Get the Vulkan instance extensions needed for vkCreateInstance.

## NAME

SDL\_Vulkan\_GetInstanceExtensions - Get the Vulkan instance extensions needed for vkCreateInstance.

## HEADER FILE

Defined in SDL3/SDL\_vulkan.h

## SYNOPSIS

```
#include "SDL3/SDL.h"
```

**char const \* const \* SDL\_Vulkan\_GetInstanceExtensions(Uint32 \*count);**

## 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.

## RETURN VALUE

(char const *const* ) Returns an array of extension name strings on success, NULL on failure; call  **SDL\_GetError** () for more information.

## AVAILABILITY

This function is available since SDL 3.2.0.

## SEE ALSO

**•**(3), [**SDL\_Vulkan\_CreateSurface**(3)](/SDL_Vulkan_CreateSurface/3.md)
