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

WebGPU: fix image leaks and allow reuse of WGPUTextureView #8046

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

Jairard
Copy link

@Jairard Jairard commented Oct 8, 2024

Fixes #7765 & #8027.

A minor counterpart of removing ImageBindGroup is that it is now released an recreated each frame where a call to ImGui::Image is done to display default font texture. I'm not sure is this is really a performance issue, but it could be handled otherwise if needed.

Also I am not sure of the pattern used for SafeRelease<WGPUBindGroup>. I'm not really familiar with ImGui's code style, so I am open to suggestion if you'd rather have this implemented differently.

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.

WebGPU backend incorrectly assumes WGPUTextureView pointers will never be reused
2 participants