GPU: Add SetGPUAllowedFramesInFlight (#11599)

This commit is contained in:
Evan Hemsley
2024-12-06 11:56:20 -08:00
committed by GitHub
parent 47429227ab
commit fa5f84fb6e
9 changed files with 109 additions and 9 deletions

View File

@@ -791,6 +791,10 @@ struct SDL_GPUDevice
SDL_GPUSwapchainComposition swapchainComposition,
SDL_GPUPresentMode presentMode);
bool (*SetAllowedFramesInFlight)(
SDL_GPURenderer *driverData,
Uint32 allowedFramesInFlight);
SDL_GPUTextureFormat (*GetSwapchainTextureFormat)(
SDL_GPURenderer *driverData,
SDL_Window *window);
@@ -927,6 +931,7 @@ struct SDL_GPUDevice
ASSIGN_DRIVER_FUNC(ClaimWindow, name) \
ASSIGN_DRIVER_FUNC(ReleaseWindow, name) \
ASSIGN_DRIVER_FUNC(SetSwapchainParameters, name) \
ASSIGN_DRIVER_FUNC(SetAllowedFramesInFlight, name) \
ASSIGN_DRIVER_FUNC(GetSwapchainTextureFormat, name) \
ASSIGN_DRIVER_FUNC(AcquireCommandBuffer, name) \
ASSIGN_DRIVER_FUNC(AcquireSwapchainTexture, name) \