mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-10-02 22:28:54 +00:00
Vulkan: Support runtime selection of WSI
This commit is contained in:
parent
c41f32bcf8
commit
f9869cb216
8 changed files with 155 additions and 179 deletions
|
@ -8,17 +8,18 @@
|
|||
|
||||
#if defined(WIN32)
|
||||
#define VK_USE_PLATFORM_WIN32_KHR
|
||||
#elif defined(HAVE_X11)
|
||||
// Currently we're getting xlib handles passed to the backend.
|
||||
// If this ever changes to xcb, it's a simple change here.
|
||||
#endif
|
||||
|
||||
#if defined(HAVE_X11)
|
||||
#define VK_USE_PLATFORM_XLIB_KHR
|
||||
//#define VK_USE_PLATFORM_XCB_KHR
|
||||
#elif defined(ANDROID)
|
||||
#endif
|
||||
|
||||
#if defined(ANDROID)
|
||||
#define VK_USE_PLATFORM_ANDROID_KHR
|
||||
#elif defined(__APPLE__)
|
||||
#endif
|
||||
|
||||
#if defined(__APPLE__)
|
||||
#define VK_USE_PLATFORM_MACOS_MVK
|
||||
#else
|
||||
//#warning Unknown platform
|
||||
#endif
|
||||
|
||||
#include "vulkan/vulkan.h"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue