Merge pull request #9 from realitix/fix_vma_stats

Robustify VmaStat
This commit is contained in:
Adam Sawicki 2017-09-21 11:50:05 +02:00 committed by GitHub
commit ee0ce0daf0

View File

@ -585,12 +585,12 @@ typedef struct VmaStatInfo
} VmaStatInfo;
/// General statistics from current state of Allocator.
struct VmaStats
typedef struct VmaStats
{
VmaStatInfo memoryType[VK_MAX_MEMORY_TYPES];
VmaStatInfo memoryHeap[VK_MAX_MEMORY_HEAPS];
VmaStatInfo total;
};
} VmaStats;
/// Retrieves statistics from current state of the Allocator.
void vmaCalculateStats(