sdlReleaseGpuTransferBuffer function
void
sdlReleaseGpuTransferBuffer(
- Pointer<
SdlGpuDevice> device, - Pointer<
SdlGpuTransferBuffer> transferBuffer
Frees the given transfer buffer as soon as it is safe to do so.
You must not reference the transfer buffer after calling this function.
\param device a GPU context. \param transfer_buffer a transfer buffer to be destroyed.
\since This function is available since SDL 3.1.3.
extern SDL_DECLSPEC void SDLCALL SDL_ReleaseGPUTransferBuffer( SDL_GPUDevice *device, SDL_GPUTransferBuffer *transfer_buffer)
Implementation
void sdlReleaseGpuTransferBuffer(Pointer<SdlGpuDevice> device,
Pointer<SdlGpuTransferBuffer> transferBuffer) {
final sdlReleaseGpuTransferBufferLookupFunction = libSdl3.lookupFunction<
Void Function(Pointer<SdlGpuDevice> device,
Pointer<SdlGpuTransferBuffer> transferBuffer),
void Function(Pointer<SdlGpuDevice> device,
Pointer<SdlGpuTransferBuffer> transferBuffer)>(
'SDL_ReleaseGPUTransferBuffer');
return sdlReleaseGpuTransferBufferLookupFunction(device, transferBuffer);
}