Function SDL_ReleaseGPUBuffer

pub unsafe extern "C" fn SDL_ReleaseGPUBuffer(
    device: *mut SDL_GPUDevice,
    buffer: *mut SDL_GPUBuffer,
)
Available on crate feature dep_sdl3 only.
Expand description

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

You must not reference the buffer after calling this function.

§Parameters

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

§Availability

This function is available since SDL 3.2.0.