gwihlidal/vk-mem-rs

Missing `vulkan/vulkan.h` and `__popcnt` on x86_64-pc-windows-msvc

James2022-rgb opened this issue · 1 comments

Just wanted to note that when trying to build for x86_64-pc-windows-msvc, cl.exe

  • failed to find "vulkan/vulkan.h"
  • failed to find the identifier __popcnt at vk_mem_alloc.h L3068

I worked around the first one by changing

build.include("vendor/Vulkan-Headers/include/vulkan");

to build.include("vendor/Vulkan-Headers/include"), though I don't know if this is really the correct way.

The second one was apparently fixed on GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator@b41615c,
so pulling the latest master commit in the submodule was enough,
though __popcnt does not seem to be used anymore anyway.

Should be fixed now. If not, feel free to open a new issue.