sdlReleaseGpuBuffer function

void sdlReleaseGpuBuffer(
  1. Pointer<SdlGpuDevice> device,
  2. Pointer<SdlGpuBuffer> buffer
)

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

You must not reference the buffer after calling this function.

\param device a GPU context. \param buffer a buffer to be destroyed.

\since This function is available since SDL 3.1.3.

extern SDL_DECLSPEC void SDLCALL SDL_ReleaseGPUBuffer( SDL_GPUDevice *device, SDL_GPUBuffer *buffer)

Implementation

void sdlReleaseGpuBuffer(
    Pointer<SdlGpuDevice> device, Pointer<SdlGpuBuffer> buffer) {
  final sdlReleaseGpuBufferLookupFunction = libSdl3.lookupFunction<
      Void Function(Pointer<SdlGpuDevice> device, Pointer<SdlGpuBuffer> buffer),
      void Function(Pointer<SdlGpuDevice> device,
          Pointer<SdlGpuBuffer> buffer)>('SDL_ReleaseGPUBuffer');
  return sdlReleaseGpuBufferLookupFunction(device, buffer);
}