mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-10 17:01:17 +12:00
Linux: Add Vulkan support for wayland (#553)
This commit is contained in:
parent
2c81d240a5
commit
fca7f5dfe4
10 changed files with 177 additions and 16 deletions
|
@ -5,6 +5,7 @@
|
|||
#if BOOST_OS_LINUX
|
||||
#include "xcb/xproto.h"
|
||||
#include <gdk/gdkkeysyms.h>
|
||||
#include <wayland-client.h>
|
||||
#endif
|
||||
|
||||
#if BOOST_OS_MACOS
|
||||
|
@ -16,6 +17,11 @@ struct WindowHandleInfo
|
|||
#if BOOST_OS_WINDOWS
|
||||
std::atomic<HWND> hwnd;
|
||||
#elif BOOST_OS_LINUX
|
||||
enum class Backend
|
||||
{
|
||||
X11,
|
||||
WAYLAND,
|
||||
} backend;
|
||||
// XLIB
|
||||
Display* xlib_display{};
|
||||
Window xlib_window{};
|
||||
|
@ -24,7 +30,8 @@ struct WindowHandleInfo
|
|||
//xcb_connection_t* xcb_con{};
|
||||
//xcb_window_t xcb_window{};
|
||||
// Wayland
|
||||
// todo
|
||||
wl_display* display;
|
||||
wl_surface* surface;
|
||||
#else
|
||||
void* handle;
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue