VulkanRenderer/vulkan_includes.c
2025-11-30 16:28:46 +11:00

25 lines
487 B
C

#pragma attribute(push, nogc, nothrow)
#ifdef __linux__
# define XLIB_ILLEGAL_ACCESS
# define VK_USE_PLATFORM_XLIB_KHR
# include <X11/Xlib.h>
#endif
#ifdef _WIN32
# include <windows.h>
# define VK_USE_PLATFORM_WIN32_KHR
#endif
#define VK_NO_PROTOTYPES
#include <vulkan/vulkan.h>
#define VMA_STATIC_VULKAN_FUNCTIONS 0
#define VMA_DYNAMIC_VULKAN_FUNCTIONS 1
#define VMA_VULKAN_VERSION 1002000
#include "external/vma/vk_mem_alloc.h"
#include "external/spirv_reflect/spirv_reflect.h"