Commit Graph

935 Commits

Author SHA1 Message Date
Adam Sawicki
39f44902f3
Revert "Unbreak on BSDs" 2018-06-04 14:06:46 +02:00
Adam Sawicki
606cb27e6e
Merge pull request #28 from jbeich/bsd
Unbreak on BSDs
2018-06-04 14:06:36 +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
Jan Beich
620dde4c1a Don't use non-standard header for C11/C++17 aligned_alloc()
$ c++ -std=c++11 src/*.cpp -lvulkan
In file included from src/VmaUsage.h:35:0,
                 from src/VmaUsage.cpp:8:
src/vk_mem_alloc.h:2233:47: fatal error: malloc.h: No such file or directory
     #include <malloc.h> // for aligned_alloc()
                                               ^
2018-05-24 13:37:02 +00: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
bb99d6933c Updated README.md: Added link to vma_sample_sdl project. 2018-04-10 13:30:27 +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
Adam Sawicki
f1a793cadd Added source files to project: Common.*, Tests.*, VmaUsage.*. 2018-03-13 15:42:22 +01:00
Adam Sawicki
ba335cf8c0 Fixed threading bug with mapping vs binding. Added functions vmaBindBufferMemory, vmaBindImageMemory. Removed class VmaDeviceMemoryMapping. Minor fixes in documentation. 2018-03-13 14:59:12 +01:00
Adam Sawicki
57fa5580c0 Documentation: Added "Recommended usage patterns" chapter. 2018-03-12 17:46:49 +01:00
Adam Sawicki
20622c6cfd Documented VmaAllocator, VmaAllocation, VmaPool. 2018-03-12 16:33:53 +01:00
Adam Sawicki
93ef5c2340 Minor addition to documentation. 2018-03-12 16:06:10 +01:00
Adam Sawicki
2283f4287a Minor fix in documentation. 2018-03-12 16:01:00 +01:00
Adam Sawicki
d8359cd295 Documentation: Written "Statistics" chapter. 2018-03-12 15:58:23 +01:00
Adam Sawicki
727e8b269f More documentation. Refactored table of contents. 2018-03-12 15:34:32 +01:00
Adam Sawicki
ec421f8763 Created documentation chapter "General considerations". 2018-03-12 13:27:31 +01:00
Adam Sawicki
e915c1b6e3 Updated documentation chapter about lost allocations. 2018-03-12 13:23:06 +01:00
Adam Sawicki
7568dfce76 Written more documentation - about lost allocations. 2018-03-09 18:18:34 +01:00
Adam Sawicki
67a2328f8c Written more documentation. 2018-03-09 18:01:03 +01:00
Adam Sawicki
95451ab2a6 Written more documentation. 2018-03-09 17:49:19 +01:00
Adam Sawicki
359793763a Many minor formatting tweaks in documentation. 2018-03-09 17:35:48 +01:00
Adam Sawicki
2609a1d000 Merge branch 'development' into v2_release 2018-03-09 16:34:36 +01:00
Adam Sawicki
a1bd730379 Minor updates in README. 2018-03-09 16:30:24 +01:00
Adam Sawicki
5ae219a982 Updated version numer to 2.0.0 final in code and documentation. 2018-03-09 16:03:40 +01:00
Adam Sawicki
3d9caf39f9 README.md: Added link to VmaDumpVis. Fixed non-ANSI character to use UTF-8 not ASCII encoding. 2018-03-09 15:55:57 +01:00
Adam Sawicki
dad992fa12 Added VmaDumpVis tool. 2018-03-09 15:48:18 +01:00
Adam Sawicki
ff1cf54330
Merge pull request #22 from ItsBits/android_support
Add android support.
2018-03-08 10:17:46 +01:00
Unknown
e5b7332e89 Add android support. 2018-03-07 22:06:25 +01:00
Adam Sawicki
b31aac8a06 Minor fix bool -> VkBool32 on interface. 2018-03-06 10:34:15 +01:00
Adam Sawicki
9ecb59e847 Version 2.0.0-alpha.8. Added functions: vmaTouchAllocation, vmaFindMemoryTypeIndexForBufferInfo, vmaFindMemoryTypeIndexForImageInfo. 2018-03-05 18:20:23 +01:00
Adam Sawicki
aed6315b86 README.md minor update. 2018-03-05 12:41:37 +01:00
Adam Sawicki
9d17bc513b
Merge pull request #21 from shoikeda/vma-null-undeclared-identifier
Fix undeclared identifier for Apple.
2018-03-05 10:51:52 +01:00
Sho Ikeda
3ee49f1843 Fix undeclared identifier for Apple. 2018-03-04 15:43:38 +09:00