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

Fix #1643 #2103

Merged
merged 2 commits into from
Dec 16, 2022
Merged

Fix #1643 #2103

merged 2 commits into from
Dec 16, 2022

Conversation

Rua
Copy link
Contributor

@Rua Rua commented Dec 13, 2022

Changelog:

### Additions
- A `buffer_with_range` constructor for `WriteDescriptorSet`, which can be used to select the range within the buffer that should be bound. This must be used when using dynamic buffers.

Fixes #1643, a longstanding bug. It's not technically "fixed", but rather an API has been added that you're supposed to use instead. This can be seen in the changes made to the dynamic-buffers example. The old usage, which triggered a validation error, should now trigger an error from Vulkano as well.

Thank you @itmuckel for motivating me to finally get it done!

@AustinJ235 AustinJ235 merged commit 3aca5dc into vulkano-rs:master Dec 16, 2022
AustinJ235 added a commit that referenced this pull request Dec 16, 2022
@Rua Rua deleted the dynbuf-fix branch October 25, 2023 14:25
hakolao pushed a commit to hakolao/vulkano that referenced this pull request Feb 20, 2024
* Fix vulkano-rs#1643

* Remove old code that was incorrect anyway
hakolao pushed a commit to hakolao/vulkano that referenced this pull request Feb 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Dynamic offsets go past the end of the buffer
2 participants