sdlReleaseWindowFromGpuDevice function

void sdlReleaseWindowFromGpuDevice(
  1. Pointer<SdlGpuDevice> device,
  2. Pointer<SdlWindow> window
)

Unclaims a window, destroying its swapchain structure.

\param device a GPU context. \param window an SDL_Window that has been claimed.

\since This function is available since SDL 3.1.3.

\sa SDL_ClaimWindowForGPUDevice

extern SDL_DECLSPEC void SDLCALL SDL_ReleaseWindowFromGPUDevice( SDL_GPUDevice *device, SDL_Window *window)

Implementation

void sdlReleaseWindowFromGpuDevice(
    Pointer<SdlGpuDevice> device, Pointer<SdlWindow> window) {
  final sdlReleaseWindowFromGpuDeviceLookupFunction = libSdl3.lookupFunction<
      Void Function(Pointer<SdlGpuDevice> device, Pointer<SdlWindow> window),
      void Function(Pointer<SdlGpuDevice> device,
          Pointer<SdlWindow> window)>('SDL_ReleaseWindowFromGPUDevice');
  return sdlReleaseWindowFromGpuDeviceLookupFunction(device, window);
}