mirror of
https://github.com/charles-lunarg/vk-bootstrap.git
synced 2024-11-30 02:14:35 +00:00
27 lines
543 B
C++
27 lines
543 B
C++
|
|
||
|
// Enable the platform specific parts of the API
|
||
|
#if defined(__ANDROID__)
|
||
|
#define VK_USE_PLATFORM_ANDROID_KHR
|
||
|
#endif
|
||
|
|
||
|
#if defined(__APPLE__)
|
||
|
#define VK_USE_PLATFORM_IOS_MVK
|
||
|
#define VK_USE_PLATFORM_MACOS_MVK
|
||
|
#define VK_USE_PLATFORM_METAL_EXT
|
||
|
#endif
|
||
|
|
||
|
#if defined(WIN32)
|
||
|
#define VK_USE_PLATFORM_WIN32_KHR
|
||
|
#endif
|
||
|
|
||
|
#if defined(__linux__)
|
||
|
#define VK_USE_PLATFORM_WAYLAND_KHR
|
||
|
#define VK_USE_PLATFORM_XCB_KHR
|
||
|
#define VK_USE_PLATFORM_XLIB_KHR
|
||
|
#define VK_USE_PLATFORM_XLIB_XRANDR_EXT
|
||
|
#endif
|
||
|
|
||
|
#define VK_ENABLE_BETA_EXTENSIONS
|
||
|
|
||
|
#include "VkBootstrap.h"
|