From 231ea193fb1d4ae10f9301294e31316a26f5e3c3 Mon Sep 17 00:00:00 2001 From: Jean-Sebastien Bevilacqua Date: Thu, 21 Sep 2017 08:57:36 +0200 Subject: [PATCH] Robustify VmaStat Currently, VmaStat is not defined as typedef. With GCC, this is not compiling. --- src/vk_mem_alloc.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vk_mem_alloc.h b/src/vk_mem_alloc.h index df5c04d..ec097e2 100644 --- a/src/vk_mem_alloc.h +++ b/src/vk_mem_alloc.h @@ -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(