add vma
This commit is contained in:
parent
b6a93e9177
commit
44ccb59177
19112
vma/vk_mem_alloc.h
Normal file
19112
vma/vk_mem_alloc.h
Normal file
File diff suppressed because it is too large
Load Diff
14
vma/vma.cpp
Normal file
14
vma/vma.cpp
Normal 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"
|
||||
@ -1,5 +1,4 @@
|
||||
public import includes;
|
||||
import platform;
|
||||
import vulkan : Vulkan, VULKAN_LIBS;
|
||||
|
||||
@nogc:
|
||||
|
||||
22
vulkan_includes.c
Normal file
22
vulkan_includes.c
Normal 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"
|
||||
Loading…
x
Reference in New Issue
Block a user