KhronosGroup / Vulkan-Hpp

Open-Source Vulkan C++ API
Apache License 2.0
3.14k stars 308 forks source link

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

Open qbojj opened 3 months ago

qbojj commented 3 months 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 3 months 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 3 months 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)