DiligentCore icon indicating copy to clipboard operation
DiligentCore copied to clipboard

Wayland support (vk only)

Open Lokomojo opened this issue 3 months ago • 2 comments

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

Lokomojo avatar Nov 26 '25 20:11 Lokomojo

I am not fully following the logic - are you trying to create surface for everything? The expectation is that the user will try to initialize the swap chain for one specific surface, not all of them, so it looks like all is needed here is to add the Wayland surface and then properly use it.

TheMostDiligent avatar Nov 27 '25 03:11 TheMostDiligent

Right yes we can get rid of the foundPlatform flag. I was thinking automatic fallback but it makes no sense since each windowing system has its own property in LinuxNativeWindow.

Lokomojo avatar Nov 27 '25 06:11 Lokomojo