DOKK / manpages / debian 13 / libsdl3-doc / SDL_ReleaseGPUShader.3.en
SDL_ReleaseGPUShader(3) SDL3 FUNCTIONS SDL_ReleaseGPUShader(3)

SDL_ReleaseGPUShader - Frees the given shader as soon as it is safe to do so.

Defined in SDL3/SDL_gpu.h

#include "SDL3/SDL.h"
void SDL_ReleaseGPUShader(
    SDL_GPUDevice *device,
    SDL_GPUShader *shader);

You must not reference the shader after calling this function.

a GPU context.
a shader to be destroyed.

This function is available since SDL 3.2.0.

SDL 3.2.10 Simple Directmedia Layer