mirror of
https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator.git
synced 2024-11-23 07:14:34 +00:00
Correctly handle VMA_STATS_STRING_ENABLED define and undefine methods not being used.
This commit is contained in:
parent
cac7d7509e
commit
e9ae4199c6
@ -1960,7 +1960,9 @@ void vmaCalculateStats(
|
||||
VmaAllocator allocator,
|
||||
VmaStats* pStats);
|
||||
|
||||
#ifndef VMA_STATS_STRING_ENABLED
|
||||
#define VMA_STATS_STRING_ENABLED 1
|
||||
#endif
|
||||
|
||||
#if VMA_STATS_STRING_ENABLED
|
||||
|
||||
@ -3561,6 +3563,8 @@ static inline bool VmaStrIsEmpty(const char* pStr)
|
||||
return pStr == VMA_NULL || *pStr == '\0';
|
||||
}
|
||||
|
||||
#if VMA_STATS_STRING_ENABLED
|
||||
|
||||
static const char* VmaAlgorithmToStr(uint32_t algorithm)
|
||||
{
|
||||
switch(algorithm)
|
||||
@ -3577,6 +3581,8 @@ static const char* VmaAlgorithmToStr(uint32_t algorithm)
|
||||
}
|
||||
}
|
||||
|
||||
#endif // #if VMA_STATS_STRING_ENABLED
|
||||
|
||||
#ifndef VMA_SORT
|
||||
|
||||
template<typename Iterator, typename Compare>
|
||||
|
Loading…
Reference in New Issue
Block a user