• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 //
2 // Copyright 2019 The ANGLE Project Authors. All rights reserved.
3 // Use of this source code is governed by a BSD-style license that can be
4 // found in the LICENSE file.
5 //
6 // vulkan_fuchsia_ext:
7 //   Defines Fuchsia-specific Vulkan extensions when compiling on other
8 //   platforms.
9 //
10 
11 #ifndef COMMON_VULKAN_FUCHSIA_EXT_H_
12 #define COMMON_VULKAN_FUCHSIA_EXT_H_
13 
14 #if !defined(VK_NO_PROTOTYPES)
15 #    define VK_NO_PROTOTYPES
16 #endif
17 
18 #include <vulkan/vulkan.h>
19 
20 // If this is not Fuchsia then define Fuchsia-specific types explicitly and include
21 // vulkan_fuchsia.h to make it possible to compile the code on other platforms.
22 //
23 // TODO(https://anglebug.com/6040): Update all code to avoid dependencies on
24 // Fuchsia-specific types when compiling on other platforms. Then remove this header.
25 #if !defined(ANGLE_PLATFORM_FUCHSIA)
26 typedef uint32_t zx_handle_t;
27 #    define ZX_HANDLE_INVALID ((zx_handle_t)0)
28 #    include <vulkan/vulkan_fuchsia.h>
29 #endif
30 
31 #endif  // COMMON_VULKAN_FUCHSIA_EXT_H_
32