vulkan-go / vulkan

Vulkan API bindings for Go programming language
MIT License
742 stars 55 forks source link

Implement getDefaultProcAddr for Windows. #41

Closed russ- closed 4 years ago

russ- commented 4 years ago

Ran into this while writing a small program that doesn't need glfw. I've transliterated the relevant bits from https://github.com/KhronosGroup/Vulkan-Hpp/blob/master/VulkanHppGenerator.cpp. I'm not overly familiar with Win32 so I'm not sure how robust it is, but it seems to work on my machine, and it looks basically like what volk and other dynamic Vulkan loaders are doing.