Skip to content

Commit 411e3f8

Browse files
committed
[Vulkan] Fix VMA Windows support
1 parent 364380d commit 411e3f8

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/vkvm/vma.cpp

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,17 @@
11
#ifndef __GNUC__
22
#include "stdafx.h"
3+
#include <vulkan/vulkan_core.h>
4+
#include <vulkan/vulkan_win32.h>
35
#define VMA_CALL_PRE __declspec(dllexport)
46
#define VMA_CALL_POST __cdecl
57
#endif
68

9+
#ifdef _DEBUG
10+
#define VMA_DEBUG_LOG_FORMAT(format, ...) do { \
11+
printf((format), __VA_ARGS__); \
12+
printf("\n"); \
13+
} while(false)
14+
#endif
15+
716
#define VMA_IMPLEMENTATION
8-
#define VMA_VULKAN_VERSION 1003000
917
#include <vma/vk_mem_alloc.h>

0 commit comments

Comments
 (0)