mirror of
https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator
synced 2024-11-05 12:20:07 +00:00
Further fixes for compilation on Windows. Defined NOMINMAX for Windows.h. Issue #38
This commit is contained in:
parent
447e36fe9a
commit
6689924517
@ -1357,6 +1357,20 @@ Features deliberately excluded from the scope of this library:
|
||||
|
||||
*/
|
||||
|
||||
/*
|
||||
Define this macro to 0/1 to disable/enable support for recording functionality,
|
||||
available through VmaAllocatorCreateInfo::pRecordSettings.
|
||||
*/
|
||||
#ifndef VMA_RECORDING_ENABLED
|
||||
#ifdef _WIN32
|
||||
#define VMA_RECORDING_ENABLED 1
|
||||
#else
|
||||
#define VMA_RECORDING_ENABLED 0
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#define NOMINMAX // For Windows.h
|
||||
|
||||
#include <vulkan/vulkan.h>
|
||||
|
||||
#if VMA_RECORDING_ENABLED
|
||||
@ -1483,18 +1497,6 @@ typedef enum VmaRecordFlagBits {
|
||||
} VmaRecordFlagBits;
|
||||
typedef VkFlags VmaRecordFlags;
|
||||
|
||||
/*
|
||||
Define this macro to 0/1 to disable/enable support for recording functionality,
|
||||
available through VmaAllocatorCreateInfo::pRecordSettings.
|
||||
*/
|
||||
#ifndef VMA_RECORDING_ENABLED
|
||||
#ifdef _WIN32
|
||||
#define VMA_RECORDING_ENABLED 1
|
||||
#else
|
||||
#define VMA_RECORDING_ENABLED 0
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/// Parameters for recording calls to VMA functions. To be used in VmaAllocatorCreateInfo::pRecordSettings.
|
||||
typedef struct VmaRecordSettings
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user