From 5c9047dbaa0013771cf9cd2339eb3d0670d52d86 Mon Sep 17 00:00:00 2001 From: Adam Sawicki Date: Mon, 25 Sep 2017 15:24:31 +0200 Subject: [PATCH] Added VmaPoolStats::unusedRangeSizeMax. --- README.md | 2 +- bin/VulkanSample_Release_2015.exe | Bin 100352 -> 100352 bytes docs/html/functions.html | 3 ++ docs/html/functions_vars.html | 3 ++ docs/html/search/all_c.js | 4 +-- docs/html/search/variables_a.js | 4 +-- docs/html/struct_vma_pool_stats-members.html | 3 +- docs/html/struct_vma_pool_stats.html | 20 +++++++++++ docs/html/vk__mem__alloc_8h_source.html | 33 ++++++++++--------- src/vk_mem_alloc.h | 23 +++++++++++++ 10 files changed, 73 insertions(+), 22 deletions(-) diff --git a/README.md b/README.md index 6cb8377..1a1edde 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ This library can help game developers to manage memory allocations and resource 1. Functions that help to choose correct and optimal memory type based on intended usage of the memory. - Required or preferred traits of the memory are expressed using higher-level description comparing to Vulkan flags. 2. Functions that allocate memory blocks, reserve and return parts of them (`VkDeviceMemory` + offset + size) to the user. - - Library keeps track of allocated memory blocks, used and unused ranges inside them, finds best matching unused ranges for new allocations, takes all the rules of alignment into consideration. + - Library keeps track of allocated memory blocks, used and unused ranges inside them, finds best matching unused ranges for new allocations, takes all the rules of alignment and buffer/image granularity into consideration. 3. Functions that can create an image/buffer, allocate memory for it and bind them together - all in one call. Additional features: diff --git a/bin/VulkanSample_Release_2015.exe b/bin/VulkanSample_Release_2015.exe index 866175a5b9ecb59689402af1a0f00c5e0e0696e9..0cb23c0ac3b9c5a14b5b5279e9a0b12c6f6c550e 100644 GIT binary patch delta 104 zcmZpez}7H50`tjcX2$KzjEo00t%00K1|VPp;#eTwV#~;|#gGvs!~m1y0kTCv i*p87w#0V}o{l6BYB*?Vw(%Ot`*%*bkpEP7N4+8*4&lH#d delta 104 zcmZpez}7H*+rAUc%#7Qa85s|1S_3(e3_!pH#IZoU#g>s_iyUnusedRangeSizeAvg : VmaStatInfo +
  • unusedRangeSizeMax +: VmaPoolStats +
  • UnusedRangeSizeMax : VmaStatInfo
  • diff --git a/docs/html/functions_vars.html b/docs/html/functions_vars.html index 67b5eff..7e5299f 100644 --- a/docs/html/functions_vars.html +++ b/docs/html/functions_vars.html @@ -236,6 +236,9 @@ $(function() {
  • UnusedRangeSizeAvg : VmaStatInfo
  • +
  • unusedRangeSizeMax +: VmaPoolStats +
  • UnusedRangeSizeMax : VmaStatInfo
  • diff --git a/docs/html/search/all_c.js b/docs/html/search/all_c.js index 4c01446..29b66c1 100644 --- a/docs/html/search/all_c.js +++ b/docs/html/search/all_c.js @@ -1,9 +1,9 @@ var searchData= [ ['unusedbytes',['UnusedBytes',['../struct_vma_stat_info.html#a394d2aef4348cb58abf73764804b4f2d',1,'VmaStatInfo']]], - ['unusedrangecount',['unusedRangeCount',['../struct_vma_pool_stats.html#ae4f3546ffa4d1e598b64d8e6134854f4',1,'VmaPoolStats::unusedRangeCount()'],['../struct_vma_stat_info.html#a56c4fb4dba646479180b601854cde2a6',1,'VmaStatInfo::UnusedRangeCount()']]], + ['unusedrangecount',['UnusedRangeCount',['../struct_vma_stat_info.html#a56c4fb4dba646479180b601854cde2a6',1,'VmaStatInfo::UnusedRangeCount()'],['../struct_vma_pool_stats.html#ae4f3546ffa4d1e598b64d8e6134854f4',1,'VmaPoolStats::unusedRangeCount()']]], ['unusedrangesizeavg',['UnusedRangeSizeAvg',['../struct_vma_stat_info.html#a88ad9bdc2b3a98964a4d0c338c0c9060',1,'VmaStatInfo']]], - ['unusedrangesizemax',['UnusedRangeSizeMax',['../struct_vma_stat_info.html#a10c52c0841f01ca704e8ddb1ea6a635d',1,'VmaStatInfo']]], + ['unusedrangesizemax',['unusedRangeSizeMax',['../struct_vma_pool_stats.html#ab4c8f52dd42ab01998f60f0b6acc722b',1,'VmaPoolStats::unusedRangeSizeMax()'],['../struct_vma_stat_info.html#a10c52c0841f01ca704e8ddb1ea6a635d',1,'VmaStatInfo::UnusedRangeSizeMax()']]], ['unusedrangesizemin',['UnusedRangeSizeMin',['../struct_vma_stat_info.html#a07c508f42a4d3424bd0c259784a7f2d6',1,'VmaStatInfo']]], ['unusedsize',['unusedSize',['../struct_vma_pool_stats.html#ad7c54874724fce7b06aba526202d82a8',1,'VmaPoolStats']]], ['usage',['usage',['../struct_vma_allocation_create_info.html#accb8b06b1f677d858cb9af20705fa910',1,'VmaAllocationCreateInfo']]], diff --git a/docs/html/search/variables_a.js b/docs/html/search/variables_a.js index 4c01446..29b66c1 100644 --- a/docs/html/search/variables_a.js +++ b/docs/html/search/variables_a.js @@ -1,9 +1,9 @@ var searchData= [ ['unusedbytes',['UnusedBytes',['../struct_vma_stat_info.html#a394d2aef4348cb58abf73764804b4f2d',1,'VmaStatInfo']]], - ['unusedrangecount',['unusedRangeCount',['../struct_vma_pool_stats.html#ae4f3546ffa4d1e598b64d8e6134854f4',1,'VmaPoolStats::unusedRangeCount()'],['../struct_vma_stat_info.html#a56c4fb4dba646479180b601854cde2a6',1,'VmaStatInfo::UnusedRangeCount()']]], + ['unusedrangecount',['UnusedRangeCount',['../struct_vma_stat_info.html#a56c4fb4dba646479180b601854cde2a6',1,'VmaStatInfo::UnusedRangeCount()'],['../struct_vma_pool_stats.html#ae4f3546ffa4d1e598b64d8e6134854f4',1,'VmaPoolStats::unusedRangeCount()']]], ['unusedrangesizeavg',['UnusedRangeSizeAvg',['../struct_vma_stat_info.html#a88ad9bdc2b3a98964a4d0c338c0c9060',1,'VmaStatInfo']]], - ['unusedrangesizemax',['UnusedRangeSizeMax',['../struct_vma_stat_info.html#a10c52c0841f01ca704e8ddb1ea6a635d',1,'VmaStatInfo']]], + ['unusedrangesizemax',['unusedRangeSizeMax',['../struct_vma_pool_stats.html#ab4c8f52dd42ab01998f60f0b6acc722b',1,'VmaPoolStats::unusedRangeSizeMax()'],['../struct_vma_stat_info.html#a10c52c0841f01ca704e8ddb1ea6a635d',1,'VmaStatInfo::UnusedRangeSizeMax()']]], ['unusedrangesizemin',['UnusedRangeSizeMin',['../struct_vma_stat_info.html#a07c508f42a4d3424bd0c259784a7f2d6',1,'VmaStatInfo']]], ['unusedsize',['unusedSize',['../struct_vma_pool_stats.html#ad7c54874724fce7b06aba526202d82a8',1,'VmaPoolStats']]], ['usage',['usage',['../struct_vma_allocation_create_info.html#accb8b06b1f677d858cb9af20705fa910',1,'VmaAllocationCreateInfo']]], diff --git a/docs/html/struct_vma_pool_stats-members.html b/docs/html/struct_vma_pool_stats-members.html index 2e96611..66df81b 100644 --- a/docs/html/struct_vma_pool_stats-members.html +++ b/docs/html/struct_vma_pool_stats-members.html @@ -68,7 +68,8 @@ $(function() { allocationCountVmaPoolStats sizeVmaPoolStats unusedRangeCountVmaPoolStats - unusedSizeVmaPoolStats + unusedRangeSizeMaxVmaPoolStats + unusedSizeVmaPoolStats