KhronosGroup / Vulkan-Hpp

Open-Source Vulkan C++ API
Apache License 2.0
3.08k stars 304 forks source link

[c++20 module] getDispatchLoaderStatic is not available #1927

Open qbojj opened 1 month ago

qbojj commented 1 month ago

When using c++20 module without VK_NO_PROTOTYPES, getDispatchLoaderStatic is not exported, but it is required to be visible if someone wants to use it outside vulkan-hpp

asuessenbach commented 1 month ago

Any reason, why you would want to use getDispatchLoaderStatic outside of Vulkan-Hpp? It's an internally used function, and maybe it should be moved to the vk::detail-namespace.

qbojj commented 1 month ago

e.g the VulkanMemoryAllocator-Hpp project uses it to pull functions for use in VMA when not supplied with an argument (https://github.com/YaaZ/VulkanMemoryAllocator-Hpp/blob/8335d9d6ff3574c89e6cf363ec1d279179f9b957/include/vk_mem_alloc.hpp#L130-L134)