SDL_DestroyGPUDevice(3)

πŸ’– SDL_DestroyGPUDevice πŸ’–

okay bestie, so this is a page from the SDL3 FUNCTIONS manual, and today's main character is SDL_DestroyGPUDevice β€” the lil cleanup queen of the GPU world 🧹✨


✨ NAME ✨

SDL_DestroyGPUDevice β€” destroys a GPU context that was previously handed to you by SDL_CreateGPUDevice. it's the goodbye hug. the "thanks for everything, now go rest" 🫢


🌸 SYNOPSIS 🌸

#include <SDL3/SDL_gpu.h>

void SDL_DestroyGPUDevice(SDL_GPUDevice *device);

πŸŽ€ FUNCTION PARAMETERS πŸŽ€

  • device β€” the GPU context you want to destroy. literally just hand it over and it's done πŸ’…

πŸ¦‹ AVAILABILITY πŸ¦‹

this one's been around since SDL 3.2.0, so it's not a newbie, it's an icon πŸ‘‘


🌈 SEE ALSO 🌈


no cap: the way that SDL_CreateGPUDevice gives you a device and SDL_DestroyGPUDevice takes it back… it's giving balanced. it's giving responsible resource management. we love a clean lifecycle fr fr πŸ’€βœ¨

Simple Directmedia Layer Β· SDL 3.4.18 Β· SDL_DestroyGPUDevice β€” mwah, that's the whole page bestie, go free your GPU memory and slay πŸ’–πŸŽ€πŸ¦‹πŸŒΈ

πŸ“¦ where this page comes from