-
Notifications
You must be signed in to change notification settings - Fork 98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unresolved external symbols #50
Comments
You have to declare an instance of vk::DispatchLoaderDynamic somewhere in your .cpp file. The simplest way is to use helper macro: //...
VULKAN_HPP_DEFAULT_DISPATCH_LOADER_DYNAMIC_STORAGE;
//... |
Does nvrhi require me to use the Vulkan C++ bindings? Also, isn't this only necessary if you're building a shared library? It seems nvrhi should automatically do it for you: nvrhi/src/vulkan/vulkan-device.cpp Line 30 in a2e059a
|
Unfortunately, by defining: nvrhi/src/vulkan/vulkan-backend.h Line 32 in a2e059a
nvrhi forces you to use C++ dynamic dispatcher, regardless you're building a shared library or not. In reality, it's not always the case, and you should have the ability to enable/disable dynamic dispatcher independently of shared library setting. Also, you should have the ability to issue VULKAN_HPP_DEFAULT_DISPATCHER.init() in your code, your way. It looks like we need two new configuration macros to cope with this issue.
|
NVRHI will create its own dynamic dispatcher when it's built as a shared library / DLL. |
So is the solution to include the Vulkan hpp header in my project? |
Include the vulkan.hpp header and define |
Thanks! |
I'm unable to build my project upon including this create device line in my code:
My top level CMakeLists:
Dependencies/CMakeLists:
The text was updated successfully, but these errors were encountered: