SDL_GDKSuspendGPU(3)
π NAME π
okay so welcome to the SDL3 FUNCTIONS manual, bestie β today's main character is SDL_GDKSuspendGPU(3). This is the call you make to suspend GPU operation on Xbox when you receive the SDL_EVENT_DID_ENTER_BACKGROUND event. periodt. π
β¨ SYNOPSIS β¨
#include <SDL3/SDL_gpu.h>
void SDL_GDKSuspendGPU(SDL_GPUDevice *device);
π«Ά DESCRIPTION π«Ά
okay so listen closely, because this part is not a vibe to mess up: Do NOT call any SDL_GPU functions after calling this function! Like, none. Not even a lil one. π
This must also be called before calling SDL_GDKSuspendComplete. The order is giving very much βdo this first, then that,β and you're gonna respect it. π
πΈ FUNCTION PARAMETERS πΈ
deviceβ a GPU context. That's it. That's the whole parameter. iconic. π
β AVAILABILITY β
This function is available since SDL 3.2.0. So if you're on that or later, you're slaying. β¨
π₯ SEE ALSO π₯
SDL_AddEventWatch(3)β go peek at this one too, bestie. π
Simple Directmedia Layer β’ SDL 3.4.18 β’ SDL_GDKSuspendGPU(3) β okay bye bestie, go suspend that GPU responsibly! πβ¨
π¦ where this page comes from
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms