suyu/src/video_core/vulkan_common/vulkan.h

27 lines
542 B
C++
Raw Normal View History

2023-07-30 13:10:00 +02:00
// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
#pragma once
#define VK_NO_PROTOTYPES
#ifdef _WIN32
#define VK_USE_PLATFORM_WIN32_KHR
#elif defined(__APPLE__)
#define VK_USE_PLATFORM_METAL_EXT
2023-08-02 00:04:39 +02:00
#elif defined(__ANDROID__)
#define VK_USE_PLATFORM_ANDROID_KHR
#else
#define VK_USE_PLATFORM_XLIB_KHR
#define VK_USE_PLATFORM_WAYLAND_KHR
2023-07-30 13:10:00 +02:00
#endif
#include <vulkan/vulkan.h>
2023-08-02 00:04:39 +02:00
// Sanitize macros
#undef CreateEvent
#undef CreateSemaphore
#undef Always
#undef False
#undef None
#undef True