-
Notifications
You must be signed in to change notification settings - Fork 0
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
Adding documentation to the allocated class hierarchy, base classes edition #1
Adding documentation to the allocated class hierarchy, base classes edition #1
Conversation
Tagging @SaschaWillems |
Thanks a lot for this. Makes it a lot easier to follow and understand the code. Very much appreciated 👍🏻 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great documentation!
Just a couple of typos.
*/ | ||
void destroy_image(ImageType image); | ||
/** | ||
* @brief Clears the internal state. Can be overridden by derived classes to perform additional cleanup of members. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can it be overridden? It's not marked as virtual.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think there's a need for this to be overriden.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think so either. So please remove that comment.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great! I like the fact that the AllocatedBase class is gone.
Just a couple of typos and maybe some whitespace adjustments.
protected: | ||
/** | ||
* @brief The VMA-specific constructor for new objects. This should only be visible to derived classes. | ||
* @tparam Args Additional constructor arguments needed for the derived class. Typically a `VkImageCreateInfo` or `VkBufferCreateInfo` struct. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo: @tparam -> @param
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not an error or typo. @tparam
is specifically for template parameters.
…base classes edition
let me know if there's anything else you want in terms of documentation. I could try to add some notes and links to the VMA docs at the appropriate places for the builder classes, but I'd rather do that in a distinct PR. if you're happy with these changes so far let me know and I'll rebase the "fixup" commits into a single commit so you can merge it without the mess. I only kept it as fixups so you could see the incremental changes for each one. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think, it's perfect now! Thanks a lot.
Here's a first pass at adding more developer comments to the allocated base classes. I haven't done the derived classes yet, but I wanted to get a sense of whether this was what was being looked for.
Prompted by KhronosGroup#1193