From c0cf25df3dfb6e0323cf6d95191316a857f1694e Mon Sep 17 00:00:00 2001 From: Joe Hermaszewski Date: Tue, 7 Apr 2020 19:59:24 +0800 Subject: [PATCH] Add CPP #error if trying to use recording on a non-Windows platform --- src/vk_mem_alloc.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/vk_mem_alloc.h b/src/vk_mem_alloc.h index 7e70a9e..b11edff 100644 --- a/src/vk_mem_alloc.h +++ b/src/vk_mem_alloc.h @@ -1932,7 +1932,11 @@ available through VmaAllocatorCreateInfo::pRecordSettings. #endif #if VMA_RECORDING_ENABLED - #include + #if defined(_WIN32) + #include + #else + #error "VMA Recording functionality is not yet available for non-Windows platforms" + #endif #endif // Define this macro to declare maximum supported Vulkan version in format AAABBBCCC,