2026-03-05 07:32:18 +01:00
|
|
|
// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project
|
2025-10-22 04:53:40 +02:00
|
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
|
|
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
|
2026-02-09 11:07:26 +00:00
|
|
|
#define VK_USE_PLATFORM_MACOS_MVK
|
2023-08-02 00:04:39 +02:00
|
|
|
#elif defined(__ANDROID__)
|
|
|
|
|
#define VK_USE_PLATFORM_ANDROID_KHR
|
2025-10-22 04:53:40 +02:00
|
|
|
#elif defined(__HAIKU__)
|
|
|
|
|
#define VK_USE_PLATFORM_XCB_KHR
|
2023-08-02 00:04:39 +02:00
|
|
|
#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
|
|
|
|
2026-04-08 23:46:50 +02:00
|
|
|
// Define maintenance 7-8 extension names (not yet in official Vulkan headers)
|
2026-01-07 06:49:32 +01:00
|
|
|
#ifndef VK_KHR_MAINTENANCE_7_EXTENSION_NAME
|
|
|
|
|
#define VK_KHR_MAINTENANCE_7_EXTENSION_NAME "VK_KHR_maintenance7"
|
|
|
|
|
#endif
|
|
|
|
|
#ifndef VK_KHR_MAINTENANCE_8_EXTENSION_NAME
|
|
|
|
|
#define VK_KHR_MAINTENANCE_8_EXTENSION_NAME "VK_KHR_maintenance8"
|
|
|
|
|
#endif
|
2026-02-09 11:07:26 +00:00
|
|
|
#ifndef VK_KHR_MAINTENANCE_9_EXTENSION_NAME
|
|
|
|
|
#define VK_KHR_MAINTENANCE_9_EXTENSION_NAME "VK_KHR_maintenance9"
|
|
|
|
|
#endif
|
|
|
|
|
#ifndef VK_EXT_METAL_SURFACE_EXTENSION_NAME
|
|
|
|
|
#define VK_EXT_METAL_SURFACE_EXTENSION_NAME "VK_EXT_metal_surface"
|
|
|
|
|
#endif
|
|
|
|
|
#ifndef VK_MVK_MACOS_SURFACE_EXTENSION_NAME
|
|
|
|
|
#define VK_MVK_MACOS_SURFACE_EXTENSION_NAME "VK_MVK_macos_surface"
|
|
|
|
|
#endif
|
2026-01-07 06:49:32 +01:00
|
|
|
|
2023-08-02 00:04:39 +02:00
|
|
|
// Sanitize macros
|
|
|
|
|
#undef CreateEvent
|
|
|
|
|
#undef CreateSemaphore
|
|
|
|
|
#undef Always
|
|
|
|
|
#undef False
|
|
|
|
|
#undef None
|
|
|
|
|
#undef True
|
2026-03-05 07:32:18 +01:00
|
|
|
|
|
|
|
|
// "Catch-all" handle for both Android and.. the rest of platforms
|
|
|
|
|
struct VkSurfaceKHR_T;
|