Add CPP #error if trying to use recording on a non-Windows platform

This commit is contained in:
Joe Hermaszewski 2020-04-07 19:59:24 +08:00
parent f575c5070b
commit c0cf25df3d

View File

@ -1932,7 +1932,11 @@ available through VmaAllocatorCreateInfo::pRecordSettings.
#endif #endif
#if VMA_RECORDING_ENABLED #if VMA_RECORDING_ENABLED
#include <windows.h> #if defined(_WIN32)
#include <windows.h>
#else
#error "VMA Recording functionality is not yet available for non-Windows platforms"
#endif
#endif #endif
// Define this macro to declare maximum supported Vulkan version in format AAABBBCCC, // Define this macro to declare maximum supported Vulkan version in format AAABBBCCC,