-
Notifications
You must be signed in to change notification settings - Fork 132
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
Build failure, unless I add 'VULKAN_HPP_DEFAULT_DISPATCHER' as third argument in 'this->mInstance->enumeratePhysicalDevices' #259
Comments
Thank you for reporting this @JesseVanDis - keen to have a deeper look at this. Could you provide information about:
based on this we can decide on whether adding this for backwards compatibility, or suggesting to upgrade. |
Hi axsaucedo, my vulkan version is: 1.2.131 All version info I can find about the headers are in vulkan_core.h // Version of this file
#define VK_HEADER_VERSION 131 Is this the one you need? Cheers, Jesse |
We currently don't have a "minimum supported version" in the docs, but we may need to introduce it as it indeed seems like an older version results in potential errors. Would you be able to upgrade your version? We could look at adding backwards compatibility to older versions of Vulkan, but normally the best practice would be to upgrade to a latter version |
Hi
I am experiencing a build error when I run CMake and make on it.
The error is as follows:
The problem lies in Manager.cpp at the following line:
of which there are 3 definitions in my vulkan.hpp:
My autocomplete shows both the first and the last function as a possible invocation, perhaps because both arguments are template types.
When I force the use of the first function by adding the 3rd default argument,
this->mInstance->enumeratePhysicalDevices(&deviceCount, nullptr, VULKAN_HPP_DEFAULT_DISPATCHER);
the build succeeds.
I am wondering myself if this is because of my compiler, or maybe I have a different vulkan header.
My vulkan header version is: 131
compiler: g++ 9.3
I also tried adding
add_definitions(-DVULKAN_HPP_DISABLE_ENHANCED_MODE)
to the CMakeLists.txt, but then I get even more errors elsewhere.I put this up as an issue, because I'm not sure what the cause is yet, and perhaps you guys know more..
if the vulkan header version is relevant, than I am not sure from which header version this fix is required..
The text was updated successfully, but these errors were encountered: