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

vk: remove history from DescriptorSetManager #8193

Merged
merged 2 commits into from
Oct 14, 2024
Merged

Conversation

poweifeng
Copy link
Contributor

"history" is a map from a DescriptorSet pointer to a set of bookkeeping values (we delay "binding" until "commit" so need to keep values until then). Instead of using a map, we can store these values in the DescriptorSet itself so that we save on a map look-up.

@poweifeng poweifeng added the internal Issue/PR does not affect clients label Oct 10, 2024
mOffsets = std::move(offsets);
}

backend::DescriptorSetOffsetArray* getOffsets() {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't this be const* getOffsets() const

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch. done

"history" is a map from a DescriptorSet pointer to a set of
bookkeeping values (we delay "binding" until "commit" so need to
keep values until then). Instead of using a map, we can store
these values in the DescriptorSet itself so that we save on a
map look-up.
@poweifeng poweifeng enabled auto-merge (squash) October 14, 2024 19:32
@poweifeng poweifeng merged commit a3290d7 into main Oct 14, 2024
12 checks passed
@poweifeng poweifeng deleted the pf/vk-reduce-maps branch October 14, 2024 19:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal Issue/PR does not affect clients
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants