forked from eden-emu/eden
vulkan: centralize config
This commit is contained in:
parent
2754f6c883
commit
9d6f8e88b2
15 changed files with 36 additions and 45 deletions
|
|
@ -8,6 +8,19 @@
|
|||
#define VK_USE_PLATFORM_WIN32_KHR
|
||||
#elif defined(__APPLE__)
|
||||
#define VK_USE_PLATFORM_METAL_EXT
|
||||
#elif defined(__ANDROID__)
|
||||
#define VK_USE_PLATFORM_ANDROID_KHR
|
||||
#else
|
||||
#define VK_USE_PLATFORM_XLIB_KHR
|
||||
#define VK_USE_PLATFORM_WAYLAND_KHR
|
||||
#endif
|
||||
|
||||
#include <vulkan/vulkan.h>
|
||||
|
||||
// Sanitize macros
|
||||
#undef CreateEvent
|
||||
#undef CreateSemaphore
|
||||
#undef Always
|
||||
#undef False
|
||||
#undef None
|
||||
#undef True
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue