-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
compilation errors if include *<SDL3/SDL_vulkan.h>* before *<vulkan/vulkan.hpp>* #11328
Comments
The issue is due to |
After check, |
…LE_HANDLE Allows including vulkan.hpp in user code in C++ before SDL_vulkan.h w/o errors. Fixes: libsdl-org#11328 . (cherry picked from commit 149ecff) (cherry picked from commit 478dff3)
…LE_HANDLE Allows including vulkan.hpp in user code in C++ before SDL_vulkan.h w/o errors. Fixes: libsdl-org#11328 .
The problem in compilation errors if <SDL3/SDL_vulkan.h> was included before <vulkan/vulkan.hpp>.
It reproducing only with vulkan C++ api, but not C.
compilation output
As I explored,
VK_NULL_HANDLE
defined to0
insted ofnullptr
in <vulkan/vulkan_core.h>Because <SDL3/SDL_vulkan.h> defined
VK_DEFINE_NON_DISPATCHABLE_HANDLE
.I also made a repo with minimal repoducible example.
So, I'm not sure that this is an SDL bug. But, probably, we need to provide workaround for this.
I'm ready to make PR, if someone will guide me to right solution/fix.
The text was updated successfully, but these errors were encountered: