SDL_ReleaseGPUShader(3)

πŸ’– SDL_ReleaseGPUShader πŸ’–

okay bestie, welcome to the SDL3 FUNCTIONS corner of the manual, this one's short and sweet and honestly kinda iconic πŸ’…


✨ NAME ✨

SDL_ReleaseGPUShader β€” frees the given shader as soon as it is safe to do so πŸ¦‹


✨ SYNOPSIS ✨

#include <SDL3/SDL_gpu.h>

void SDL_ReleaseGPUShader(
    SDL_GPUDevice *device,
    SDL_GPUShader *shader);

✨ DESCRIPTION ✨

She releases the shader for you, but like… on her own schedule πŸŽ€

fr fr tho: you must not reference the shader after calling this function. not once. not even a lil peek. it's gone, she's gone, we don't talk about her anymore 😭

✨ FUNCTION PARAMETERS ✨

  • device β€” a GPU context 🫢
  • shader β€” a shader to be destroyed πŸ’€

✨ AVAILABILITY ✨

this queen has been serving since SDL 3.2.0 βœ¨πŸ‘‘


that's the whole page bestie, no cap, we ate and left no crumbs 🌸

this was brought to you by Simple Directmedia Layer, running SDL 3.4.18, and yeah that's the version, that's the vibe, periodt πŸ’œ

πŸ“¦ where this page comes from