Skip to content
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: AddTexture alternative public API taking a descriptor pool #7249

Open
wants to merge 1 commit into
base: docking
Choose a base branch
from

Conversation

edvn0
Copy link

@edvn0 edvn0 commented Jan 22, 2024

This commit adds an optional VkDescriptorPool to the AddTexture calls. I've had many issues with my pool running out of descriptor sets, and calling VkResetDescriptorPool invalidates all of ImGui in a weird way, mapping my images (image descriptors) onto the fonts etc.

This solution simply adds an optional descriptor pool which you can reset independently of ImGui in a way that's "better" (please discuss) for Vulkan applications where you typically already have that kind of management implemented.

The old API is implemented by means of the new API.

This commit adds an optional VkDescriptorPool to the AddTexture calls.
I've had many issues with my pool running out of descriptor sets, and
calling VkResetDescriptorPool invalidates all of ImGui in a weird way,
mapping my images (image descriptors) onto the fonts etc.

This solution simply adds an optional descriptor pool which you can
reset independently of ImGui in a way that's "better" (please discuss)
for Vulkan applications where you typically already have that kind of
management implemented.
@ocornut ocornut changed the title feat(Vulkan): AddTexture alternative public API Backends: Vulkan: AddTexture alternative public API taking a descriptor pool Jan 22, 2024
@edvn0
Copy link
Author

edvn0 commented Jan 26, 2024

@ocornut Any thoughts?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants