-
Notifications
You must be signed in to change notification settings - Fork 168
Wayland support (vk only) #726
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
base: master
Are you sure you want to change the base?
Conversation
|
I am not fully following the logic - are you trying to create surface for everything? |
|
Right yes we can get rid of the |
| } | ||
| #elif defined(VK_USE_PLATFORM_WAYLAND_KHR) | ||
| if (m_Window.pDisplay != nullptr) | ||
| #elif defined(VK_USE_PLATFORM_WAYLAND_KHR) || defined(VK_USE_PLATFORM_XCB_KHR) || defined(VK_USE_PLATFORM_XLIB_KHR) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Empty branch that remained from your first version
|
If I understood correctly the issue is merely Diligent's API missing the option to be initialized using a Wayland handle instead of an X11 one. Solving this seems rather simple, I wonder why this hasn't made it's way into the main branch yet. Am I missing something? Is there some philosophy to Diligent's API that would prevent this from being merged? |
|
This specific change has not been merged primarily because it fails to pass PR checks. |
|
I'm currently setting up a project to test this. I'll hopefully have news to share tomorrow. |
|
Alright! As promised @TheMostDiligent, I gave this fork a spin and I’m happy to report it works, but with a caveat that likely explains why the CI tests failed. The code changes implemented by @Lokomojo are correct, but they are currently being excluded from the build because I managed to get it working perfectly by forcing I hope this helps move things forward! |
|
@remi-scarlet-1 thanks for confirming - I will fix and merge this PR. |
Re: #358
Turns out that only a minimal change is needed to get Wayland support working in diligent - at least for vulkan only.
This patch will only try to create a wayland window if NativeWindow::pWaylandSurface is defined, otherwise will fall back to xcb/xlib