Function SDL_ReleaseGPUShader

pub unsafe extern "C" fn SDL_ReleaseGPUShader(
    device: *mut SDL_GPUDevice,
    shader: *mut SDL_GPUShader,
)
Available on crate feature dep_sdl3 only.
Expand description

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

You must not reference the shader after calling this function.

§Parameters

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

§Availability

This function is available since SDL 3.2.0.