varmd / wine-wayland

Wine-wayland allows playing DX9/DX11 and Vulkan games using pure wayland and Wine/DXVK.
729 stars 14 forks source link

Question on graphic driver implementation i.e. winewayland.drv #22

Closed StarAurryon closed 3 years ago

StarAurryon commented 3 years ago

Hello Varmd,

I am currently trying to port wine graphic stack to SDL2 as it is supported by X11 and Wayland (that is currently my second attempt). Do you have some hints on how I could get the surface buffer from wine and what are the key functions to implement to have a proper winecfg dialog as a start. I am struggling to find documentation and encountering some segfaults, wine freeze, etc.

Thanks in advance,

Aurryon

varmd commented 3 years ago

For the GDI buffer source, you can take a look at WAYLANDDRV_WindowPosChanging and android_surface_flush in winewayland.drv/vulkan.c