---
name: "SDL_Vulkan_UnloadLibrary"
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_UnloadLibrary"
---

# SDL\_Vulkan\_UnloadLibrary(3)

Unload the Vulkan library previously loaded by SDL\_Vulkan\_LoadLibrary ().

## NAME

SDL\_Vulkan\_UnloadLibrary - Unload the Vulkan library previously loaded by  **SDL\_Vulkan\_LoadLibrary** ().

## HEADER FILE

Defined in SDL3/SDL\_vulkan.h

## SYNOPSIS

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

**void SDL\_Vulkan\_UnloadLibrary(void);**

## DESCRIPTION

SDL keeps a counter of how many times this function has been called, so it is safe to call this function multiple times, so long as it is paired with an equivalent number of calls to

**SDL\_Vulkan\_LoadLibrary** . The library isn't actually unloaded until there have been an equivalent number of calls to

**SDL\_Vulkan\_UnloadLibrary** .

Once the library has actually been unloaded, if any Vulkan instances remain, they will likely crash the program. Clean up any existing Vulkan resources, and destroy appropriate windows, renderers and GPU devices before calling this function.

## THREAD SAFETY

This function is not thread safe.

## AVAILABILITY

This function is available since SDL 3.2.0.

## SEE ALSO

**•**(3), [**SDL\_Vulkan\_LoadLibrary**(3)](/SDL_Vulkan_LoadLibrary/3.md)
