GPU: Add swapchain dimension out params (#11003)

This commit is contained in:
Evan Hemsley 2024-09-30 10:23:19 -07:00 committed by GitHub
parent b3388d5753
commit afdf325fb4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 347 additions and 285 deletions

View file

@ -82,7 +82,7 @@ SDL_AppResult SDL_AppIterate(void *appstate)
}
SDL_GPUTexture *swapchainTexture;
if (!SDL_AcquireGPUSwapchainTexture(cmdbuf, state->windows[0], &swapchainTexture)) {
if (!SDL_AcquireGPUSwapchainTexture(cmdbuf, state->windows[0], &swapchainTexture, NULL, NULL)) {
SDL_Log("SDL_AcquireGPUSwapchainTexture failed: %s", SDL_GetError());
return SDL_APP_FAILURE;
}