doitsujin / dxvk

Vulkan-based implementation of D3D8, 9, 10 and 11 for Linux / Wine
zlib License
13.32k stars 856 forks source link

[Feature Request] Add support for X11 WSI #3751

Open bkaradzic opened 11 months ago

bkaradzic commented 11 months ago

This is not issue, rather feature request... Sorry! :smiley:

It would be great if DXVK can be used directly with X11 without SDL.

I already did some work, it's not complete, but it works enough for my use case (using D3D11 for testing on Linux directly without SDL): https://github.com/bkaradzic/dxvk/commit/38b5f66ece6b2e7bcfa99654bf298329195dc90f

flibitijibibo commented 11 months ago

It might make things easier to rebase on #3738, which allows all the backends to live in one binary.

doitsujin commented 11 months ago

3738 is definitely going to happen first, but I'm not opposed to having an X11 backend added afterwards.

Is the xlib path relevant? Given that the headers are such a huge pain in the arse to work with and have #defines for literally every English word in existence, I'd strongly prefer to not have to deal with it and just have an xcb path.

flibitijibibo commented 5 months ago

The WSI changes got merged, so it should now be possible to add xcb/xlib support in the same binary as SDL/GLFW.