-
Notifications
You must be signed in to change notification settings - Fork 397
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
vk_enum_string_helper.h does not work in C #3233
Comments
Trying to run
Trying to run Which modules is it looking for? I see no clear list of python dependencies in this repository, other than distutils which I already have. |
Some scripts add the path dynamically |
The .h vs .hpp issue is a duplicate of issue #1. We have no current plans to rename header files in the repository. |
Would a pull request be accepted, though? I will do whatever it takes to be able to print the enum values in an elegant way, up to even modifying all the other header files to match if it is necessary. |
As of right now, the Vulkan-ValidationLayers (VVL) is not intended to be used as an "API." i.e., all of the VVL source is only intended to be used and maintained for use within VVL. While I understand the problem here and sympathize with it, this would add an additional burden to maintain more python code; python code that would be generating headers that would never get tested through any of the VVL test suites. If the desire is a C header with the same functionality as Closing this for now as we currently cannot support the new code that it would introduce. |
Added ifdef checks for backcompat Intended to properly address these issue(s): - KhronosGroup/Vulkan-ValidationLayers#3233 - KhronosGroup/Vulkan-ValidationLayers#1211
vk_enum_string_helper.h is now C compatible and lives in the https://github.com/KhronosGroup/Vulkan-Utility-Libraries |
Describe the Issue
helper_file_generator.py generates a vk_enum_string_helper.h that requires C++, instead of a seperate vk_enum_string_helper.hpp file for C++ and vk_enum_string_helper.h file for C.
Environment:
Additional context
I discovered this via a no such file or directory error:
When trying to use this file.
When replacing this with <string.h>, I get hundreds of lines of errors relating to the use of std::string.
Why is C++ code in a .h file? Shouldn't it be .hpp?
I will probably start modifying helper_file_generator.py to generate 2 files instead of 1 after submitting this issue, and may want to create a pull request to merge this into mainline. Is this the right route to take?
The text was updated successfully, but these errors were encountered: