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

Doc website #1773

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft

Doc website #1773

wants to merge 3 commits into from

Conversation

theHamsta
Copy link
Contributor

@theHamsta theHamsta commented Jan 22, 2024

Initial draft to run doxygen on Vulkan-Hpp to have a documentation website that could be hosted somewhere. Not sure if this is needed/useful.

E.g. https://thehamsta.github.io/Vulkan-Hpp/

Vulkan-Hpp samples already have VULKAN_HPP_KEY_START. Are they already pushed to some kind of documentation website?

@theHamsta theHamsta marked this pull request as draft January 22, 2024 16:31
vulkan/vulkan_static_assertions.hpp \
vulkan/vulkan_raii.hpp \
vulkan/vulkan_structs.hpp \
vulkan/vulkan_structs.hpp \
Copy link
Contributor Author

Choose a reason for hiding this comment

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

without VulkanSC to make webpage not unnecessary slower for class list. doxygen crashed on VkSharedHandle by encountering an infinite recursion loop when investigating template relations.

on:
push:
branches:
- main
Copy link
Contributor Author

Choose a reason for hiding this comment

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

pushes webpage to gh-pages. In repo, setting this branch can be enabled to serve Github pages.

Alternative would be to publish the documentation in some other location (e.g. Khronous owned) or just leave it for users to build locally.

@@ -100,7 +100,7 @@ The scoped enum feature adds type safety to the flags, but also prevents using t

As solution Vulkan-Hpp provides a template class `vk::Flags` which brings the standard operations like `&=`, `|=`, `&` and `|` to our scoped enums. Except for the initialization with 0 this class behaves exactly like a normal bitmask with the improvement that it is impossible to set bits not specified by the corresponding enum by accident. Here are a few examples for the bitmask handling:

```c++
Copy link
Contributor Author

@theHamsta theHamsta Jan 22, 2024

Choose a reason for hiding this comment

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

Doxygen doesn't understand c++ in Markdown, cpp

@theHamsta theHamsta marked this pull request as ready for review January 23, 2024 19:28
@theHamsta theHamsta marked this pull request as draft February 6, 2024 20:55
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.

None yet

1 participant