SDL_DestroyGPURenderState(3)
π SDL_DestroyGPURenderState π
okay so bestie, welcome to the SDL3 FUNCTIONS section of the manual, and today we're talking about saying bye-bye to your custom GPU render state. yes, it's the cleanup era and honestly? iconic behavior. β¨
πΈ NAME πΈ
SDL_DestroyGPURenderState β destroy custom GPU render state. that's it. that's the whole vibe. she destroys, she slays, she frees. π«Ά
π SYNOPSIS π
#include <SDL3/SDL_render.h>
void SDL_DestroyGPURenderState(SDL_GPURenderState *state);
so you pull in the header from <SDL3/SDL_render.h> and then you hit it with the void. no return value, no drama, no notes. π
π¦ FUNCTION PARAMETERS π¦
stateβ the state to destroy. like, the actualSDL_GPURenderStateyou want gone. hand her over and she's done for. π
π THREAD SAFETY π
okay this part is important so listen up fr fr:
This function should be called on the thread that created the renderer.
do NOT go destroying her from some random other thread, bestie. that's giving chaos. the thread that made the renderer is the thread that ends the render state. periodt. π
β AVAILABILITY β
This function is available since SDL 3.4.0. so if you're on something older than that, she simply does not exist yet. no cap. π§
π SEE ALSO π
- SDL_CreateGPURenderState(3) β the other half of the story, the making instead of the breaking. go read her too, iykyk. π
anyway, that's the page! go forth and free your render state, main character. πΈ
this lil manual moment came to you from the Simple Directmedia Layer, version SDL 3.4.18 β and yeah, the page itself is SDL_DestroyGPURenderState(3). mwah. ππ
π¦ where this page comes from
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms