GPU: recreate swapchain on window pixel size change event (#10985)

This commit is contained in:
Evan Hemsley authored and GitHub committed 2024-09-28 18:09:56 -07:00
1 parent 66f6b40c92
commit fc242abbd2
4 files changed
+136 -139

No files matched your search

+1 -1
View File
@@ -3263,7 +3263,7 @@ extern SDL_DECLSPEC bool SDLCALL SDL_WindowSupportsGPUPresentMode(
* Claims a window, creating a swapchain structure for it.
*
* This must be called before SDL_AcquireGPUSwapchainTexture is called using
* the window.
* the window. You should only call this function from the thread that created the window.
*
* The swapchain will be created with SDL_GPU_SWAPCHAINCOMPOSITION_SDR and
* SDL_GPU_PRESENTMODE_VSYNC. If you want to have different swapchain