-
-
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 Cleanup Validation Error in my application #6812
Comments
I'm no expert on Vulkan, but noticed two things.
|
Thanks for your feedback. The descriptor pool is created in the
|
Just to be sure, did you verify that the problem is in your code first? Does the verification find any problems in the unmodified GLFW Vulkan example? If the original example cleans up without issues, you should try to transport your customizations one by one and check each time. |
The problem is for sure in my code, but I can't find it anywhere. Basically I'm doing everything identical to the example when it comes to cleanup. So I have really no idea what causes the problem in the cleanup routine. My only idea was, that it is caused by me moving the ui related code to the second class, which should not change anything.
|
"Moving code to a second class" should not change anything indeed, assuming things are executed the same way in the same order. If you have a behavioral difference it means you made a mistake. Please however note, that today we simplified some of the Vulkan backend, so you don't need to create a command-buffer to upload fonts: the backend will do it itself (see comment #6943 (comment) and commit 79a9e2f). Based on this change you should be able to remove your uploadFonts() function completely and let the backend do it automatically. |
Version: Dear ImGui 1.89.9 WIP (18982) + Vulkan & GLFW
Back-end/Renderer/Compiler/OS
Back-ends: imgui_impl_vulkan.cpp + imgui_impl_glfwcpp .cpp
Compiler: VS2022
Operating System: Win10 64bit
My Issue/Question:
I have a custom class called "Gui" which handels everything ui related and is called form my rendering class. The demo window is shown without any problem and works just finde. However cleanup does not work as expected, it leaves me behind two validation errors:
When I remove everthing ui related (meaning that i dont call the init, render, draw, cleanup method), the error is also gone. I tried to track the error down, but everything seems to be pretty much like in the example for Vulkan & GLFW.
Here is the implementation of the "gui" class,:
The text was updated successfully, but these errors were encountered: