sdlReleaseGpuBuffer function gpu

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.2.0.

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

Implementation

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