KhronosGroup / Vulkan-Hpp

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

<vulkan/vulkan_hash.hpp> included in vulkan.cppm but std::hash specializations are not exported. #1943

Open stripe2933 opened 3 weeks ago

stripe2933 commented 3 weeks ago

Looks like Clang can use them, but MSVC can't. Is it intended behavior?

sharadhr commented 1 week ago

I suppose we need to explicitly export the template specialisations. I haven't quite tested them; if you've got a minimum example that'd be great.

asuessenbach commented 3 days ago

@sharadhr If you're looking for some usage of the vk-hash functions, please have a look at the Hash test (Vulkan-Hpp\tests\Hash\Hash.cpp).