Home | History | Annotate | Download | only in vk
      1 /*
      2  * Copyright 2017 Google Inc.
      3  *
      4  * Use of this source code is governed by a BSD-style license that can be
      5  * found in the LICENSE file.
      6  */
      7 
      8 #ifndef GrVulkanDefines_DEFINED
      9 #define GrVulkanDefines_DEFINED
     10 
     11 #if defined(SK_BUILD_FOR_WIN)
     12 #   if !defined(VK_USE_PLATFORM_WIN32_KHR)
     13 #      define VK_USE_PLATFORM_WIN32_KHR
     14 #   endif
     15 #elif defined(SK_BUILD_FOR_ANDROID)
     16 #   if !defined(VK_USE_PLATFORM_ANDROID_KHR)
     17 #      define VK_USE_PLATFORM_ANDROID_KHR
     18 #   endif
     19 #elif defined(SK_BUILD_FOR_UNIX)
     20 #   if !defined(VK_USE_PLATFORM_XCB_KHR)
     21 #      define VK_USE_PLATFORM_XCB_KHR
     22 #   endif
     23 #endif
     24 
     25 // We create our own function table and never directly call any functions via vk*(). So no need to
     26 // include the prototype functions.
     27 #if !defined(VK_NO_PROTOTYPES)
     28 #define VK_NO_PROTOTYPES
     29 #endif
     30 
     31 #include <vulkan/vulkan.h>
     32 
     33 #endif
     34