render: Add Suspend/Resume calls for GDK support

This commit is contained in:
Ethan Lee
2026-03-04 20:26:54 -05:00
parent 0c57e99b4a
commit ee5c5cf755
12 changed files with 108 additions and 34 deletions

View File

@@ -667,9 +667,7 @@ extern SDL_DECLSPEC void SDLCALL SDL_UnregisterApp(void);
* This should be called from an event watch in response to an
* `SDL_EVENT_DID_ENTER_BACKGROUND` event.
*
* When using SDL_Render, your event watch should be added _after_ creating
* the `SDL_Renderer`; this allows the timing of the D3D12 command queue
* suspension to execute in the correct order.
* When using SDL_Render, this should be called after calling SDL_GDKSuspendRenderer.
*
* When using SDL_GPU, this should be called after calling SDL_GDKSuspendGPU.
*