This commit is contained in:
Matthew 2025-08-15 05:10:51 +10:00
parent b6a93e9177
commit 44ccb59177
5 changed files with 19149 additions and 1 deletions

1
.ignore Normal file
View File

@ -0,0 +1 @@
.git

19112
vma/vk_mem_alloc.h Normal file

File diff suppressed because it is too large Load Diff

14
vma/vma.cpp Normal file
View File

@ -0,0 +1,14 @@
#define VMA_IMPLEMENTATION
#define VMA_STATIC_VULKAN_FUNCTIONS 0
#define VMA_DYNAMIC_VULKAN_FUNCTIONS 1
#define VMA_VULKAN_VERSION 1002000
#ifdef __linux__
#define VK_USE_PLATFORM_XCB_KHR
#elif _WIN32
#define VK_USE_PLATFORM_WIN32_KHR
#else
#error not yet implemented
#endif
#include "vk_mem_alloc.h"

View File

@ -1,5 +1,4 @@
public import includes; public import includes;
import platform;
import vulkan : Vulkan, VULKAN_LIBS; import vulkan : Vulkan, VULKAN_LIBS;
@nogc: @nogc:

22
vulkan_includes.c Normal file
View File

@ -0,0 +1,22 @@
#ifdef __linux__
# include <xcb/xcb.h>
# include <X11/Xlib.h>
# define VK_USE_PLATFORM_XCB_KHR
#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
#define VMA_IMPLEMENTATION
#include "vma/vk_mem_alloc.h"