Path: blob/main_old/include/vulkan/vulkan_fuchsia_ext.h
1693 views
//1// Copyright 2019 The ANGLE Project Authors. All rights reserved.2// Use of this source code is governed by a BSD-style license that can be3// found in the LICENSE file.4//5// vulkan_fuchsia_ext:6// Defines Fuchsia-specific Vulkan extensions when compiling on other7// platforms.8//910#ifndef COMMON_VULKAN_FUCHSIA_EXT_H_11#define COMMON_VULKAN_FUCHSIA_EXT_H_1213#if !defined(VK_NO_PROTOTYPES)14# define VK_NO_PROTOTYPES15#endif1617#include <vulkan/vulkan.h>1819// If this is not Fuchsia then define Fuchsia-specific types explicitly and include20// vulkan_fuchsia.h to make it possible to compile the code on other platforms.21//22// TODO(https://anglebug.com/6040): Update all code to avoid dependencies on23// Fuchsia-specific types when compiling on other platforms. Then remove this header.24#if !defined(ANGLE_PLATFORM_FUCHSIA)25typedef uint32_t zx_handle_t;26# define ZX_HANDLE_INVALID ((zx_handle_t)0)27# include <vulkan/vulkan_fuchsia.h>28#endif2930#endif // COMMON_VULKAN_FUCHSIA_EXT_H_313233