-
-
Notifications
You must be signed in to change notification settings - Fork 10.6k
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
Backends: Vulkan: Modifiable depth and stencil formats #6855
Conversation
Could you clarify this? It wasn't mentioned in #5037 and #5446 and we had a test bed that worked without them. |
I'd like to understand this better and then we can also design if perhaps it is a better idea that we add a |
It's typically better to set the format of the depth image to a format that the GPU supports. In the case of non-dynamic rendering this isn't really an issue as the depth image is "bound" to the VkFramebuffer object as an attachment and not the pipeline. In dynamic rendering, because of the depth image is being bound dynamically at draw time, if the formats of the pipeline and the formats of the depth image don't match, it results in a I think a passable The idea I had was just a hack to get around this issue relating to depth images and dynamic rendering. |
Could you suggest a modification to this patch #5037 (comment) that showcases an issue? |
I think the PR could be reworked by adding But this change would need to account for 6695006 in docking branch (issue #6999). |
I've currently lost interest/am not working on ImGUI at the moment as I am busy, I may revisit this PR in the future. I could turn this into a draft or close it outright. |
@ocornut I'm having this exact issue actually. And I think the suggestion of providing Disclaimer: I'm still relatively new to Vulkan. To give an example of what causes the issue in code:
The full error is as follows: |
I'll try to get a PR up for some of this too. I was thinking of doing one anyway based on the discussion in #7140 |
Created the PR here: #7166 |
Should be merged with #7166, thanks both! Please note I've been asking for a repro based on the existing patch to enable dynamic rendering in examples, and wasn't provided one: #6855 (comment), many times is the main reason those PR are not merged. I still don't have such repro so I merged this blindly but this is only adding technical debt to my ability to react to Vulkan changes. |
Hello,
When using Dear ImGui with Vulkan's dynamic rendering extensions,
depthAttachmentFormat
andstencilAttachmentFormat
are unset. This may lead to problematic errors if your depth image or stencil has differing formats.The solution I have considered is creating a new pipeline and setting the required values, but that seems quite unnecessary for simple use of Dear ImGui.
For users (like myself) who just want to use dynamic rendering without worrying about creating a new pipeline for ImGui, this seems like the best solution.