sdlUnmapGpuTransferBuffer function

void sdlUnmapGpuTransferBuffer(
  1. Pointer<SdlGpuDevice> device,
  2. Pointer<SdlGpuTransferBuffer> transferBuffer
)

Unmaps a previously mapped transfer buffer.

\param device a GPU context. \param transfer_buffer a previously mapped transfer buffer.

\since This function is available since SDL 3.1.3.

extern SDL_DECLSPEC void SDLCALL SDL_UnmapGPUTransferBuffer( SDL_GPUDevice *device, SDL_GPUTransferBuffer *transfer_buffer)

Implementation

void sdlUnmapGpuTransferBuffer(Pointer<SdlGpuDevice> device,
    Pointer<SdlGpuTransferBuffer> transferBuffer) {
  final sdlUnmapGpuTransferBufferLookupFunction = libSdl3.lookupFunction<
          Void Function(Pointer<SdlGpuDevice> device,
              Pointer<SdlGpuTransferBuffer> transferBuffer),
          void Function(Pointer<SdlGpuDevice> device,
              Pointer<SdlGpuTransferBuffer> transferBuffer)>(
      'SDL_UnmapGPUTransferBuffer');
  return sdlUnmapGpuTransferBufferLookupFunction(device, transferBuffer);
}