Skip to content

Commit 447e36f

Browse files
Fixed missing #include <Windows.h> for cases when it's needed but macro VK_USE_PLATFORM_WIN32_KHR is not defined. Issue #38 thanks @farnoy !
1 parent abf747a commit 447e36f

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/VmaReplay/VmaUsage.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
#define NOMINMAX
44
#define WIN32_LEAN_AND_MEAN
55
#include <Windows.h>
6-
#define VK_USE_PLATFORM_WIN32_KHR
76

7+
#define VK_USE_PLATFORM_WIN32_KHR
88
#include <vulkan/vulkan.h>
99

1010
//#define VMA_USE_STL_CONTAINERS 1

src/vk_mem_alloc.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1359,6 +1359,10 @@ Features deliberately excluded from the scope of this library:
13591359

13601360
#include <vulkan/vulkan.h>
13611361

1362+
#if VMA_RECORDING_ENABLED
1363+
#include <Windows.h>
1364+
#endif
1365+
13621366
#if !defined(VMA_DEDICATED_ALLOCATION)
13631367
#if VK_KHR_get_memory_requirements2 && VK_KHR_dedicated_allocation
13641368
#define VMA_DEDICATED_ALLOCATION 1

0 commit comments

Comments
 (0)