Function SDL_ReleaseGPUTexture

pub unsafe extern "C" fn SDL_ReleaseGPUTexture(
    device: *mut SDL_GPUDevice,
    texture: *mut SDL_GPUTexture,
)
Available on crate feature dep_sdl3 only.
Expand description

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

You must not reference the texture after calling this function.

§Parameters

  • device: a GPU context.
  • texture: a texture to be destroyed.

§Availability

This function is available since SDL 3.2.0.