Function SDL_ReleaseGPUSampler

pub unsafe extern "C" fn SDL_ReleaseGPUSampler(
    device: *mut SDL_GPUDevice,
    sampler: *mut SDL_GPUSampler,
)
Available on crate feature dep_sdl3 only.
Expand description

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

You must not reference the sampler after calling this function.

§Parameters

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

§Availability

This function is available since SDL 3.2.0.