Skip to content

Comments

Vulkan: Fix incorrect traversal of descriptor bindings#2226

Merged
qining merged 1 commit intogoogle:masterfrom
qining:fix-buf-binding
Sep 18, 2018
Merged

Vulkan: Fix incorrect traversal of descriptor bindings#2226
qining merged 1 commit intogoogle:masterfrom
qining:fix-buf-binding

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