SDL_RELEASEWINDOWFROMGPUDEVICE(3)

πŸ’… SDL_ReleaseWindowFromGPUDevice(3)

okay bestie, welcome to the SDL3 function pages, this one's from the SDL3 FUNCTIONS manual and it's all about letting a window go 🫢


✨ NAME ✨

SDL_ReleaseWindowFromGPUDevice β€” unclaims a window, destroying its swapchain structure. yes, literally that. it's the breakup function πŸ’”


🌸 SYNOPSIS 🌸

#include <SDL3/SDL_gpu.h>

void SDL_ReleaseWindowFromGPUDevice(
    SDL_GPUDevice *device,
    SDL_Window *window);

πŸŽ€ FUNCTION PARAMETERS πŸŽ€

  • device β€” a GPU context. that's your GPU main character, the whole vibe provider πŸ”₯
  • window β€” an SDL_Window that has been claimed. like, it was already claimed earlier, and now we're un-claiming it. no cap.

⭐ AVAILABILITY ⭐

this function is available since SDL 3.2.0. so if you're on anything older, it's giving "not found" energy, sorry bestie 😭


πŸ¦‹ SEE ALSO πŸ¦‹


lowkey important: this is the undo button for SDL_ClaimWindowForGPUDevice. it unclaims the window and destroys its swapchain structure, so don't come for it later expecting the swapchain to still be there πŸ‘‘

and that's the whole page, periodt πŸ’…

Simple Directmedia Layer Β· SDL 3.4.18 Β· SDL_ReleaseWi...FromGPUDevice(3) β€” mwah, love u, go unclaim responsibly πŸŽ€βœ¨

πŸ“¦ where this page comes from