Skip to content

Comments

Vulkan: re-Fix wrong descriptor set indices when binding descriptor sets#2224

Merged
qining merged 1 commit intogoogle:masterfrom
qining:fix-dyn-desc-offset
Sep 18, 2018
Merged

Vulkan: re-Fix wrong descriptor set indices when binding descriptor sets#2224
qining merged 1 commit intogoogle:masterfrom
qining:fix-dyn-desc-offset

Conversation

@qining
Copy link
Contributor

@qining qining commented Sep 17, 2018

This re-fixes the wrong calculation of descriptor set indices when binding
descriptor sets. The fix was reverted as #2191 get reverted.

Also, for multi-layer maps (e.g. map!(u32, map!(u32...), we need to
explicitly assign the child map back to the parent map. This is because
the generated go/c++ code will not assign the child map back to the
parent map automactically (go: Get(), c++: findOrZero) when write
api file like: parent[parent_key][child_key] = child_content.

TODO: Similar bugs for other mutlti-layer maps

This re-fixes the wrong calculation of descriptor set indices when binding
descriptor sets. The fix was reverted as google#2191 get reverted.

Also, for multi-layer maps (e.g. `map!(u32, map!(u32...`), we need to
explicitly assign the child map back to the parent map. This is because
the generated go/c++ code will not assign the child map back to the
parent map automactically (go: `Get()`, c++: `findOrZero`) when write
api file like: `parent[parent_key][child_key] = child_content`.

TODO: Similar bugs for other mutlti-layer maps
@qining qining requested a review from AWoloszyn September 17, 2018 20:22
@qining qining merged commit 7bc48ef into google:master Sep 18, 2018
@qining qining deleted the fix-dyn-desc-offset 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