-
-
Notifications
You must be signed in to change notification settings - Fork 10.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Vulkan validation error with SDK 1.3.275 #7236
Comments
The suggestion to move Here is the patch: |
Thank you Martin-Karl. Did the fix work for you with multi-viewports enabled? |
Yes, it works with docking and multiple viewports. |
…VulkanSDK 1.3.275 by allocating one extra semaphore than in-flight frames. (#7236)
…VulkanSDK 1.3.275 by allocating one extra semaphore than in-flight frames. (#7236)
Thanks again for the great work and super fast response! |
I'm new to vulkan and encountered this issue. This question is more for fundamental understanding of the underlying logic here. |
Agreed. After reading the spec, I still can't understand why we can't use the image count of the swapchain for semaphores. |
I haven't been able to look at this, but may be good to open a PR (will a link to those explanation) for the records. Thanks! |
This topic needs serious thought.
|
Version/Branch of Dear ImGui:
Version docking
Back-ends:
imgui_impl_vulkan
Compiler, OS:
Windows 11
Full config/build information:
No response
Details:
Running the example_glfw_vulkan will generate validation errors with the latest Vulkan SDK 1.3.275
One way to fix this is to move
vkWaitForFences
beforevkAcquireNextImageKHR
.Doing this in
imgui_impl_vulkan.cpp::ImGui_ImplVulkan_RenderWindow
andmain.cpp::FrameRender
fix the errors.Another solution would be to create
SemaphoreCount = ImageCount+1
and to changewd->SemaphoreIndex = (wd->SemaphoreIndex + 1) % wd->SemaphoreCount;
Screenshots/Video:
No response
Minimal, Complete and Verifiable Example code:
No response
The text was updated successfully, but these errors were encountered: