sdlDestroyGpuDevice function

void sdlDestroyGpuDevice(
  1. Pointer<SdlGpuDevice> device
)

Destroys a GPU context previously returned by SDL_CreateGPUDevice.

\param device a GPU Context to destroy.

\since This function is available since SDL 3.1.3.

\sa SDL_CreateGPUDevice

extern SDL_DECLSPEC void SDLCALL SDL_DestroyGPUDevice(SDL_GPUDevice *device)

Implementation

void sdlDestroyGpuDevice(Pointer<SdlGpuDevice> device) {
  final sdlDestroyGpuDeviceLookupFunction = libSdl3.lookupFunction<
      Void Function(Pointer<SdlGpuDevice> device),
      void Function(Pointer<SdlGpuDevice> device)>('SDL_DestroyGPUDevice');
  return sdlDestroyGpuDeviceLookupFunction(device);
}