Man page - sdl_releasegputexture(3)

Packages contas this manual

Manual

SDL_ReleaseGPUTexture(3) SDL3 FUNCTIONS SDL_ReleaseGPUTexture(3)

SDL_ReleaseGPUTexture - Frees the given texture as soon as it is safe to do so.

Defined in SDL3/SDL_gpu.h

#include "SDL3/SDL.h"
void SDL_ReleaseGPUTexture(
    SDL_GPUDevice *device,
    SDL_GPUTexture *texture);

You must not reference the texture after calling this function.

a GPU context.
a texture to be destroyed.

This function is available since SDL 3.2.0.

SDL 3.2.10 Simple Directmedia Layer