2017-12-07 17:48:30 +00:00
|
|
|
/*
|
|
|
|
* Copyright 2017 Google Inc.
|
|
|
|
*
|
|
|
|
* Use of this source code is governed by a BSD-style license that can be
|
|
|
|
* found in the LICENSE file.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef GrVulkanDefines_DEFINED
|
|
|
|
#define GrVulkanDefines_DEFINED
|
|
|
|
|
2019-04-23 17:05:21 +00:00
|
|
|
#include "include/core/SkTypes.h"
|
2018-05-22 14:48:08 +00:00
|
|
|
|
2018-08-01 13:23:57 +00:00
|
|
|
#if defined(SK_BUILD_FOR_WIN)
|
|
|
|
# if !defined(VK_USE_PLATFORM_WIN32_KHR)
|
|
|
|
# define VK_USE_PLATFORM_WIN32_KHR
|
|
|
|
# endif
|
|
|
|
#elif defined(SK_BUILD_FOR_ANDROID)
|
|
|
|
# if !defined(VK_USE_PLATFORM_ANDROID_KHR)
|
|
|
|
# define VK_USE_PLATFORM_ANDROID_KHR
|
|
|
|
# endif
|
|
|
|
#elif defined(SK_BUILD_FOR_UNIX)
|
2019-09-25 21:14:35 +00:00
|
|
|
# if !defined(__Fuchsia__) && !defined(VK_USE_PLATFORM_XCB_KHR)
|
2018-08-01 13:23:57 +00:00
|
|
|
# define VK_USE_PLATFORM_XCB_KHR
|
|
|
|
# endif
|
|
|
|
#elif defined(SK_BUILD_FOR_MAC)
|
|
|
|
# if !defined(VK_USE_PLATFORM_MACOS_MVK)
|
|
|
|
# define VK_USE_PLATFORM_MACOS_MVK
|
|
|
|
# endif
|
|
|
|
#elif defined(SK_BUILD_FOR_IOS)
|
|
|
|
# if !defined(VK_USE_PLATFORM_IOS_MVK)
|
|
|
|
# define VK_USE_PLATFORM_IOS_MVK
|
|
|
|
# endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
// We create our own function table and never directly call any functions via vk*(). So no
|
2020-03-19 19:54:28 +00:00
|
|
|
// need to include the prototype functions.
|
|
|
|
#if !defined(VK_NO_PROTOTYPES)
|
2018-08-01 13:23:57 +00:00
|
|
|
#define VK_NO_PROTOTYPES
|
|
|
|
#endif
|
2017-12-07 17:48:30 +00:00
|
|
|
|
2018-08-01 13:23:57 +00:00
|
|
|
#include <vulkan/vulkan.h> // IWYU pragma: export
|
2017-12-07 17:48:30 +00:00
|
|
|
|
|
|
|
#endif
|