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

Vulkan: Fix incorrect traversal of descriptor bindings #2226

Merged
merged 1 commit into from
Sep 18, 2018

Conversation

Qining
Copy link
Contributor

@Qining Qining commented Sep 18, 2018

Descriptor bindings are not 'consecutive numbers starting from 0'.
Should use for _, binding_number, binding in descriptor_set.Bindings
instead of for i in (0 .. len(descriptor_set.Bindings)) to traverse
through the maps.

This also allow us to drop the duplicated memory-read for buffers when
binding descriptor sets.

Descriptor bindings are not 'consecutive numbers starting from 0'.
Should use `for _, binding_number, binding in descriptor_set.Bindings`
instead of `for i in (0 .. len(descriptor_set.Bindings))` to traverse
through the maps.

This also allow us to drop the duplicated memory-read for buffers when
binding descriptor sets.
@Qining Qining requested a review from AWoloszyn September 18, 2018 00:46
@Qining Qining merged commit 84ee393 into google:master Sep 18, 2018
@Qining Qining deleted the fix-buf-binding branch October 23, 2018 17:26
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.

2 participants