diff options
| author | Michael Lentine <mlentine@google.com> | 2015-12-03 14:33:09 -0800 |
|---|---|---|
| committer | Mark Lobodzinski <mark@lunarg.com> | 2015-12-11 15:32:58 -0700 |
| commit | 6ce6c20b154a89b9e50646d6bb70b7da763abc87 (patch) | |
| tree | 5b471e3d6c0cadf633fdd0b777b899c6d82e166b /include/vulkan | |
| parent | c862cd354e1eaea10c41024f3a2fc4eef58ddacd (diff) | |
| download | usermoji-6ce6c20b154a89b9e50646d6bb70b7da763abc87.tar.xz | |
android: Fix android build.
Temporarily disable shader checker which now depends on glslang
Fix xcb guards and set the ifdef based on platform
Diffstat (limited to 'include/vulkan')
| -rw-r--r-- | include/vulkan/vk_layer.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/vulkan/vk_layer.h b/include/vulkan/vk_layer.h index 47165f77..31040c0e 100644 --- a/include/vulkan/vk_layer.h +++ b/include/vulkan/vk_layer.h @@ -14,6 +14,18 @@ #else # define VK_LAYER_EXPORT #endif +#if defined(__ANDROID__) +#define VK_USE_PLATFORM_ANDROID_KHR +#elif defined(_WIN32) +#define VK_USE_PLATFORM_WIN32_KHR +#elif defined(__unix__) +#define VK_USE_PLATFORM_MIR_KHR +#define VK_USE_PLATFORM_WAYLAND_KHR +#define VK_USE_PLATFORM_XLIB_KHR +#define VK_USE_PLATFORM_XCB_KHR +#else +#error "Unsupported Platform!" +#endif typedef void * (VKAPI_PTR *PFN_vkGPA)(void* obj, const char * pName); typedef struct VkBaseLayerObject_ |
