Commit Graph

211 Commits

Author SHA1 Message Date
Adam Sawicki
87c8189002 Foo 2018-08-20 10:52:54 +02:00
Adam Sawicki
ab8550340c Added more detailed statistics about created buffers and images based on human-friendly classification (see http://asawicki.info/news_1682_human-friendly_classification_of_vulkan_resources.html) 2018-08-13 15:15:36 +02:00
Adam Sawicki
385b716276 Added statistics for number of VmaAllocator nad VmaPool objects. 2018-08-13 14:06:17 +02:00
Adam Sawicki
5765b8ac83 Added statistics about thread usage. 2018-08-13 13:51:33 +02:00
Adam Sawicki
03764c6ea0 Statistics: added printing of original recording time. 2018-08-13 13:38:46 +02:00
Adam Sawicki
1016cc682c Added function SecondsToFriendlyStr. Printing playback duration. 2018-08-13 13:30:04 +02:00
Adam Sawicki
652ac27547 Added CmdLineParser, proper parsing of command line parameters, and -v parameter for verbosity. 2018-08-13 13:13:13 +02:00
Adam Sawicki
db1f73fee4 Improved handling of destruction calls with null handle, in vk_mem_alloc as well as VmaReplay. 2018-08-13 12:22:37 +02:00
Adam Sawicki
5b48b5efcf Code formatting 2018-08-13 12:15:50 +02:00
Adam Sawicki
f188a152de Minor fixes. 2018-08-07 17:58:46 +02:00
Adam Sawicki
deeb817d7a Minor fixes. Added basic statistics. 2018-08-07 17:30:29 +02:00
Adam Sawicki
71f3d067c5 Better tracking of allocations. 2018-08-07 17:09:51 +02:00
Adam Sawicki
4d63e9d886 Improved error handling. 2018-08-07 16:52:32 +02:00
Adam Sawicki
ec5fecf51a Implemented playback of current format. 2018-08-07 16:20:34 +02:00
Adam Sawicki
9d7d848658 VmaReplay: Initialized Vulkan. 2018-08-07 14:13:06 +02:00
Adam Sawicki
0b9bcf0340 Added struct StrRange for convenience. 2018-08-07 13:50:50 +02:00
Adam Sawicki
6d2e2e0cac Created project VmaReplay, started coding it. 2018-08-07 13:44:20 +02:00
Adam Sawicki
1d536111cc Removed path to MathFu from premake5.lua, which is not longer included in the project. 2018-08-07 12:23:55 +02:00
Adam Sawicki
0d80dab2c0 Fixed minor documentation mistakes - issue #32 - thanks @dgough ! 2018-08-01 16:20:24 +02:00
Adam Sawicki
3d99a1ca66 VmaJsonWriter::ContinueString: Fixed bug with incorrect JSON generated when pUserData string contains '\' character. 2018-06-25 15:01:59 +02:00
Adam Sawicki
e44c62684d Added debug macro VMA_DEBUG_INITIALIZE_ALLOCATIONS to initialize contents of allocations with a bit pattern. Documented it. Added test for it.
Fixed some indentation.
2018-06-15 14:30:39 +02:00
Adam Sawicki
11904e3cec Fixed typo 2018-06-14 16:54:55 +02:00
Adam Sawicki
212a4a6567 Added new feature: corruption detection. Added debug macro VMA_DEBUG_DETECT_CORRUPTION, functions vmaCheckCorruption, vmaCheckPoolCorruption 2018-06-14 15:51:47 +02:00
Adam Sawicki
73b1665ea4 Changed behavior of VMA_DEBUG_MARGIN macro - it now adds margin also before first and after last allocation in a block. Improved validation of VMA_DEBUG_MARGIN. Added test for it - function TestDebugMargin(). 2018-06-11 16:39:25 +02:00
Adam Sawicki
82c3f33547 Added custom, simple structures: vec3, vec4, mat4. Removed dependency on external library MathFu. 2018-06-11 15:27:33 +02:00
Adam Sawicki
d292417cdb Minor improvement in VmaBlockVector::Allocate. TestPool_SameSize: Added test for it. 2018-06-11 12:48:46 +02:00
Adam Sawicki
c1af66a549 Bumped version number (still Alpha). 2018-06-08 17:16:57 +02:00
Adam Sawicki
776ae0d5f8 Improved support for non-coherent memory. Added functions: vmaFlushAllocation, vmaInvalidateAllocation. nonCoherentAtomSize is respected automatically. Issue #27 Thanks @egdaniel !
Also added VmaVulkanFunctions::vkFlushMappedMemoryRanges, vkInvalidateMappedMemoryRanges. Fixed bug with uninitialized VmaPool_T::m_Id.
2018-06-08 17:11:12 +02:00
Adam Sawicki
5aa99be043 Bumped version number. 2018-06-04 14:18:27 +02:00
Adam Sawicki
083532cf3a Removed #include <malloc.h> for aligned_alloc(). Based on #28 by @jbeich 2018-06-04 14:12:15 +02:00
Adam Sawicki
6a0a85a5c0 Added subsequent, unique, numeric IDs to memory blocks and custom pools. They are dumped in JSON. JSON format changed: "Pools" and "Blocks" arrays are now objects, where key is pool/block ID, and value is as before. Applied appropriate changes in VmaDumpVis.py - it now shows pool and block ID from the dump. 2018-06-01 15:20:49 +02:00
Adam Sawicki
31695cf349 VmaDumpVis: Improved coloring based on new Usage parameter dumped in JSON. 2018-05-18 17:46:19 +02:00
Adam Sawicki
b127d7fac0 Minor fix in comment. 2018-05-17 14:44:13 +02:00
Adam Sawicki
d9bdd6cf78 Added "LastUseFrameIndex" to JSON dump. Changed behavior of vmaGetAllocationInfo, vmaTouchAllocation to update allocation.lastUseFrameIndex even if allocation cannot become lost. Documented it. 2018-05-16 16:17:18 +02:00
Adam Sawicki
c22103d183 JSON detailed dump: added parameters "CreationFrameIndex" and "Usage" (which are usage flags from VkImageCreateInfo or VkBufferCreateInfo). 2018-05-11 15:33:27 +02:00
Adam Sawicki
7b08b8f375 Fixed preprocessor macros to fix compilation in C projects. Issue #26. Thanks @jesta88 ! 2018-05-04 11:03:27 +02:00
Adam Sawicki
bafb06e50d Minor fix in VmaBlockVector::CalcMaxBlockSize for compilation in Visual Studio 2012 32-bit. Thanks @DominikWitczakAMD ! 2018-04-11 16:30:21 +02:00
Adam Sawicki
f8e5c145d1 Added VMA_CLASS_NO_COPY to silence warning in Visual Studio 2012 compiler: C4512 "class' : assignment operator could not be generated". Thanks @DominikWitczakAMD ! 2018-04-11 15:51:03 +02:00
Adam Sawicki
5391e6c7fa Improved logic of vmaFindMemoryTypeIndex for some cases, especially integrated GPUs. 2018-04-06 17:22:33 +02:00
Adam Sawicki
9bb910e63c Updates in documentation. 2018-04-06 17:04:28 +02:00
Adam Sawicki
6530fe3a38 Fixed vmaDestroyBuffer, vmaDestroyImage, vmaFreeMemory for cases where allocation is null. #24 thanks @achienbsi ! 2018-04-04 10:54:27 +02:00
Adam Sawicki
4f91939dea Added #if VMA_DEDICATED_ALLOCATION around every usage of VK_KHR_get_memory_requirements2 or VK_KHR_dedicated_allocation extension - for compatibility with Android. #23 Thanks @achienbsi ! 2018-04-03 13:45:39 +02:00
Adam Sawicki
5a51732c47 Added link to my GDC talk. 2018-04-03 12:28:11 +02:00
Adam Sawicki
7f574fc0fe Minor update to README. 2018-03-27 11:17:48 +02:00
Adam Sawicki
0c3901d2ec Recompiled binary. 2018-03-18 22:35:39 -07:00
Adam Sawicki
be9436868e Regenerated documentation. 2018-03-13 17:38:40 +01:00
Adam Sawicki
b0920f9306 Merge branch 'v2_release' 2018-03-13 17:36:39 +01:00
Adam Sawicki
a68c01c85e Added optional usage of VmaAllocatorCreateInfo::pAllocationCallbacks (disabled by default). 2018-03-13 16:40:45 +01:00
Adam Sawicki
6cc5e859ea Added usage of VK_KHR_dedicated_allocation extension. 2018-03-13 16:37:54 +01:00
Adam Sawicki
b8333fb925 Publishing testing environment. Tests are available under [T] key. 2018-03-13 16:15:53 +01:00