sdlGdkResumeGpu function gpu

void sdlGdkResumeGpu(
  1. Pointer<SdlGpuDevice> device
)

Call this to resume GPU operation on Xbox when you receive the SDL_EVENT_WILL_ENTER_FOREGROUND event.

When resuming, this function MUST be called before calling any other SDL_GPU functions.

\param device a GPU context.

\since This function is available since SDL 3.2.0.

\sa SDL_AddEventWatch

extern SDL_DECLSPEC void SDLCALL SDL_GDKResumeGPU(SDL_GPUDevice *device)

Implementation

void sdlGdkResumeGpu(Pointer<SdlGpuDevice> device) {
  final sdlGdkResumeGpuLookupFunction = _libSdl
      .lookupFunction<
        Void Function(Pointer<SdlGpuDevice> device),
        void Function(Pointer<SdlGpuDevice> device)
      >('SDL_GDKResumeGPU');
  return sdlGdkResumeGpuLookupFunction(device);
}