Bug fixes for `vulkan.cppm` (#1616)
authorSharadh Rajaraman <3754080+sharadhr@users.noreply.github.com>
Mon, 10 Jul 2023 06:46:50 +0000 (14:46 +0800)
committerGitHub <noreply@github.com>
Mon, 10 Jul 2023 06:46:50 +0000 (08:46 +0200)
commitf4abba455e21b19b2f41f055796b9707403f1ba9
treee081957ab536783c774faa648e775c061f98762c
parent7a4ee5eaafdc0e53d0120331d049ced97ada27d5
Bug fixes for `vulkan.cppm` (#1616)

* Bug fixes for C++20 module

- Removed nested `export` keyword for `vk::raii` namespace in C++ module file
- Fixed macro in `vulkan.cppm` for `vk::DynamicLoader`: changed from `VULKAN_HPP_DYNAMIC_LOADER_TOOL` to `VULKAN_HPP_ENABLE_DYNAMIC_LOADER_TOOL`
- Moved VulkanHppModule declaration before generator
- Fixed `CMakeLists.txt` for `Cpp20Modules` executable target

* Use `VULKAN_HPP_CONSTEXPR_INLINE` for constants in `vulkan.hpp`

- Added VULKAN_HPP_CONSTEXPR_INLINE macro definition
- Allow external linkage for these constants in C++17 and later
CMakeLists.txt
VulkanHppGenerator.cpp
snippets/defines.hpp
tests/Cpp20Modules/CMakeLists.txt
vulkan/vulkan.cppm
vulkan/vulkan.hpp