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

more improvements to filaflat #931

Merged
merged 5 commits into from Mar 6, 2019
Merged

more improvements to filaflat #931

merged 5 commits into from Mar 6, 2019

Conversation

pixelflinger
Copy link
Collaborator

No description provided.

This removes a lot of code and complexity. MaterialParser now has 
a single, generic getShader() method.
this makes the API more robust, because now it's not possible
to mess up the call to getShader(), by construction.
@@ -37,7 +37,7 @@ class BlobDictionary {
}

inline void addBlob(Blob&& blob) noexcept {
mBlobs.emplace_back(std::move(blob));
mBlobs.push_back(std::move(blob));
Copy link
Contributor

Choose a reason for hiding this comment

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

Remind me why this preferable here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I don't think it's preferable, it's just that emplace_back() is for passing the parameters that the ctor would take. Here we're just emplacing_back with the copy-ctor, which doesn't do anything different than push_back.

@pixelflinger pixelflinger merged commit 7d81d9b into master Mar 6, 2019
@pixelflinger pixelflinger deleted the ma/dictionary branch March 6, 2019 01:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants