vulkan: fix vkResetDescriptorPool validation error

This commit is contained in:
Sasha Szpakowski
2025-01-31 22:52:23 -04:00
parent 0f39eeb73c
commit 0d21908b7e
+1 -1
View File
@@ -107,7 +107,7 @@ void SharedDescriptorPools::newFrame(uint64 frameIndex)
if (!lastFrameIndex.hasValue || lastFrameIndex.value != frameIndex)
{
lastFrameIndex.set(frameIndex);
currentFrame = (size_t)(frameIndex % MAX_FRAMES_IN_FLIGHT);
currentFrame = (size_t)((currentFrame + 1) % MAX_FRAMES_IN_FLIGHT);
currentPool = 0;
for (VkDescriptorPool pool : pools[currentFrame])
vkResetDescriptorPool(device, pool, 0);