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

Destroy buffers after use, fix bug in BufferTable #416

Merged
merged 1 commit into from
Jan 18, 2025
Merged

Conversation

djeedai
Copy link
Owner

@djeedai djeedai commented Jan 18, 2025

Always call Buffer::destroy() on the old buffer resource when a GPU buffer is re-allocated. This ensures we get a runtime assertion if a bind group is not recreated and attempts to use a stale buffer.

Fix a bug in BufferTable where the free list was not updated correctly, which could in theory lead to issues once re-allocating new elements.

Always call `Buffer::destroy()` on the old buffer resource when a GPU
buffer is re-allocated. This ensures we get a runtime assertion if a
bind group is not recreated and attempt to use a stale buffer.

Fix a bug in `BufferTable` where the free list was not updated
correctly, which could in theory lead to issues once re-allocating new
elements.
@djeedai djeedai added C - bug Something isn't working A - internal Internal change on a core system A - debugging Hanabi debugging tools and features labels Jan 18, 2025
@djeedai djeedai merged commit 5d78670 into main Jan 18, 2025
15 checks passed
@djeedai djeedai deleted the u/buffers branch January 18, 2025 16:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A - debugging Hanabi debugging tools and features A - internal Internal change on a core system C - bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant