From 6ab16040705e5b14fe0c9b5f2bae59129c8e0a44 Mon Sep 17 00:00:00 2001 From: Adam Sawicki Date: Wed, 20 Sep 2017 13:27:21 +0200 Subject: [PATCH] Created vk_mem_alloc.natvis file. VmaVectorRemoveSorted: Fixed compilation error when STL is used. --- bin/VulkanSample_Release_2015.exe | Bin 100352 -> 100352 bytes src/vk_mem_alloc.h | 4 +-- src/vk_mem_alloc.natvis | 40 ++++++++++++++++++++++++++++++ 3 files changed, 42 insertions(+), 2 deletions(-) create mode 100644 src/vk_mem_alloc.natvis diff --git a/bin/VulkanSample_Release_2015.exe b/bin/VulkanSample_Release_2015.exe index c08cac908914f8deec21b0528dac0eafc11ecce9..ee972ae75445fb0c3e90ac5d47436d6f07beae18 100644 GIT binary patch delta 511 zcmZpez}7H5eZZm3%#4Pij3JXv!xZ8kb_Yo`zhW#AZ2rYq!sgg~{{L%Um+pFv z*X$nM?glR17Ovgjy?a@s$?Va3vP79*zJ&n!1$Wkqx*!1^~Iv6p1mv=JgpCv zIC*q)cvzn=vhuM0S!C*|eZb@34`$Ea%>N$NM~fvrdwCA{XrJ)wWjXuf|Ns9Uy@6UB z|3#kx9p%w|)wBED3+-A4h6xDgZrO`)?t{tA;aXw3K#x1T76EzRquWCPs_iy33`yRRp&ufy`iFC`)Ew0O^^yUC@q^-HMTSyJQ99 GbAABCE4f|( delta 503 zcmZpez}7H5@Y4gEnHdd38AB(VhABk-><*G>e#KbA-~5ZQgthtX|JU5z`5Ld; zJi6Ttx;0$7zk2twZ1XtyfW@QnU;!5cg9q~o<8R&f94+KM_+4*$bjGM8c(mRw5%cIi z{ao4h&9uzt(H-|kQWkM3(;y*yVLfWYJ6PiBwS zlO@s~y)1$r7hiZ<+8iuq^XLs=e9i39eZs@~V$oCIUY3hM>o59PA1HD1>}K$=K3-(y zVf~}X)K~kU=fNM$zP&~NeXWlbOM3V69Q4(`;MdD?^~eAJ|2=vGIsS`&*vFv4;Msl6 zv-|7|(^>|G2?&So+lz4MtI56LS|K_>4?DaT0eRb_+d~25G)W-G!h`vs2hdBrK&N|l z`vXmNJH)`?(|yjT+nuBPs%Q6kkM0(3EBLXBT3?fEwx#|D47$rfmwq07A zaV;Ao|MruHj6yt&7pC8_WmFN|oCGq1fgvZEfdQnaeY>C?BfAwN<95jk#^?M1E{3`y diff --git a/src/vk_mem_alloc.h b/src/vk_mem_alloc.h index 474035d..df5c04d 100644 --- a/src/vk_mem_alloc.h +++ b/src/vk_mem_alloc.h @@ -2012,8 +2012,8 @@ bool VmaVectorRemoveSorted(VectorT& vector, const typename VectorT::value_type& { CmpLess comparator; typename VectorT::iterator it = VmaBinaryFindFirstNotLess( - vector.data(), - vector.data() + vector.size(), + vector.begin(), + vector.end(), value, comparator); if((it != vector.end()) && !comparator(*it, value) && !comparator(value, *it)) diff --git a/src/vk_mem_alloc.natvis b/src/vk_mem_alloc.natvis new file mode 100644 index 0000000..0477fa7 --- /dev/null +++ b/src/vk_mem_alloc.natvis @@ -0,0 +1,40 @@ + + + + {{ Count={m_Count} }} + + m_Count + + m_Count + m_pFront + pNext + Value + + + + + + {{ Count={m_RawList.m_Count} }} + + m_RawList.m_Count + + m_RawList.m_Count + m_RawList.m_pFront + pNext + Value + + + + + + {{ Count={m_Count} }} + + m_Count + m_Capacity + + m_Count + m_pArray + + + + \ No newline at end of file