Commit Graph

523 Commits

Author SHA1 Message Date
Adam Sawicki
e5ae29a5e4 Minor fix. 2018-02-09 16:59:01 +01:00
Adam Sawicki
a82e18346e Version 2.0.0-alpha.7. Removed VmaAllocatorCreateInfo::preferredSmallHeapBlockSize. VmaBlockVector::Allocate: New algorithm that allocates 1/8, 1/4, 1/2 of preferred block size as first blocks, to save memory. 2018-02-09 16:52:05 +01:00
Adam Sawicki
6ee1560d4d Fixed typo. 2018-02-08 14:33:40 +01:00
Adam Sawicki
0186953b59 Used VK_NO_PROTOTYPES when defining default value for VMA_STATIC_VULKAN_FUNCTIONS. 2018-02-08 12:55:29 +01:00
Adam Sawicki
4cefd614dc Fixed VmaBlockVector::MakePoolAllocationsLost (thanks @kennyalive! #18) 2018-01-24 12:43:00 +01:00
Adam Sawicki
defbf3d975 Minor fix in documentation. 2018-01-23 13:58:07 +01:00
Adam Sawicki
4426bfbc19 Updated year to 2018. 2018-01-22 18:18:24 +01:00
Adam Sawicki
54ef95b610 Minor fix after last commit. 2018-01-22 12:45:13 +01:00
Adam Sawicki
213f2bc6a2
Merge pull request #17 from cdwfs/master
Fixed some avoidable warnings when building with -Wall
2018-01-22 12:43:35 +01:00
Cort Stratton
1311787760 Fixed some avoidable warnings when building with -Wall 2018-01-19 13:14:19 -08:00
Adam Sawicki
95f07262a8 VmaAllocator_T::CalcPreferredBlockSize: Minor improvement - treating HOST_CACHED memory type as small heap. 2018-01-19 16:09:04 +01:00
Adam Sawicki
a0b2b80d2d Travis CI configuration: Updated path to Vulkan SDK download. 2017-12-18 16:01:56 +01:00
Adam Sawicki
f65a435483 Fix in documentation. 2017-12-06 13:39:59 +01:00
Adam Sawicki
ca0ccecf67 vmaCreateBuffer: Added some asserts. 2017-12-04 13:33:01 +01:00
Adam Sawicki
594a56260f Added VmaAllocationCreateInfo::memoryTypeBits. Wrote more documentation, including new page "Choosing memory type". 2017-11-21 15:01:29 +01:00
Adam Sawicki
b8ad8a09a1 VmaAllocator_T::ImportVulkanFunctions: Added automatic acquire of vkGetBufferMemoryRequirements2KHR, vkGetImageMemoryRequirements2KHR when using VMA_ALLOCATOR_CREATE_KHR_DEDICATED_ALLOCATION_BIT. 2017-11-21 13:13:32 +01:00
Adam Sawicki
50cc36fbfc Improved documentation of VmaAllocatorCreateInfo::pHeapSizeLimit. 2017-11-21 12:38:55 +01:00
Adam Sawicki
495cb16fa3 Fixed bug in case vkBindImageMemory/vkBindBufferMemory fails. 2017-11-20 16:22:09 +01:00
Adam Sawicki
5bc033f19d Fixed reporting UserData in JSON dump for dedicated allocations. 2017-11-20 14:09:49 +01:00
Adam Sawicki
6a1f1e2d8d Fixed bug with mapping of non-dedicated allocations. 2017-11-14 16:21:12 +01:00
Adam Sawicki
8eb9d8e253 Fixed attachment layout transitions. #2 2017-11-13 16:30:14 +01:00
Adam Sawicki
3bd398a373 Fixed attachment layout transitions. 2017-11-13 16:10:38 +01:00
Adam Sawicki
c353ad0717 Version 2.0.0-alpha.6. Added VMA_ALLOCATION_CREATE_USER_DATA_COPY_STRING_BIT. 2017-11-13 15:03:04 +01:00
Adam Sawicki
5268dbbce5 Version 2.0.0-alpha.5. Major change in memory mapping - now it's internally reference-counted.
Renamed flag VMA_ALLOCATION_CREATE_PERSISTENT_MAP_BIT to VMA_ALLOCATION_CREATE_MAPPED_BIT.
See documentation of vmaMapMemory().
2017-11-08 12:52:05 +01:00
Adam Sawicki
ee92a03f59 VmaAllocator_T::AllocateMemoryOfType: Fixed major bug when VMA_ALLOCATION_CREATE_PERSISTENT_MAP_BIT is used with VMA_MEMORY_USAGE_GPU_ONLY. 2017-10-18 15:35:00 +02:00
Adam Sawicki
0fcf86292b Documentation: changed page identifier to lowercase to (hopefully) fix 404 error on GitHub. 2017-10-17 15:13:48 +02:00
Adam Sawicki
3057956f31 Minor improvements in documentation. 2017-10-17 12:14:41 +02:00
Adam Sawicki
07a7deb09d Improvements in documentation formatting. 2017-10-17 12:07:39 +02:00
Adam Sawicki
c005a84e37 Added documentation for VK_KHR_dedicated_allocation extension. 2017-10-17 11:57:56 +02:00
Adam Sawicki
d08dc0cd6a Reorganized Doxygen documentation into more separate pages. 2017-10-17 11:27:14 +02:00
Adam Sawicki
14137d11bc Removed unnecessary VkSubpassDependency. 2017-10-16 18:06:05 +02:00
Adam Sawicki
283207beb0 Renamed VMA_ALLOCATOR_ flags to VMA_ALLOCATOR_CREATE_. Improved support for VK_KHR_dedicated_allocation. 2017-10-13 17:54:47 +02:00
Adam Sawicki
2742a9e6e7 .travis.yml: Updated Vulkan SDK to latest version 1.0.61.1. 2017-10-03 11:36:44 +02:00
Adam Sawicki
f72365c0fc Small fix in VmaAllocator_T::AllocateDedicatedMemory. 2017-10-03 11:32:55 +02:00
Adam Sawicki
358bc78544 Fixed support for VK_KHR_dedicated_allocation: Added missing usage of VkMemoryDedicatedAllocateInfoKHR structure. 2017-10-03 11:26:58 +02:00
Adam Sawicki
5db51b1264 Added support for VMA_ALLOCATION_CREATE_PERSISTENT_MAP_BIT without HOST_VISIBLE.
Implemented usage of VK_KHR_dedicated_allocation.
Renamed "own allocation" to "dedicated allocation" everywhere.
2017-10-02 18:31:03 +02:00
Adam Sawicki
1bb85fa719 Added support for VMA_ALLOCATION_CREATE_PERSISTENT_MAP_BIT without HOST_VISIBLE. Improved empty block heuristics. 2017-10-02 14:28:51 +02:00
Adam Sawicki
951f66a841 Improvements in documentation 2017-09-27 14:14:42 +02:00
Adam Sawicki
c7b3e7c85d Updated documents - added links to GitHub repository and GPUOpen product page. 2017-09-27 13:40:58 +02:00
Adam Sawicki
f79b75763c README.md: Added link to PyVMA. 2017-09-26 16:43:37 +02:00
Adam Sawicki
a892d137ae Small fix. 2017-09-26 13:58:44 +02:00
Adam Sawicki
f8b70f0542 Merge pull request #13 from realitix/missing_vulkan_function
Fix vulkan calls
2017-09-26 13:57:59 +02:00
Jean-Sebastien Bevilacqua
b19740c4e5 Fix vulkan calls
Some calls are made in a static way
2017-09-26 13:20:05 +02:00
Adam Sawicki
25c44a9320 Merge pull request #12 from realitix/c_mangling
Fix name mangling for C
2017-09-26 12:59:59 +02:00
Jean-Sebastien Bevilacqua
4cfa3d02c0 Fix name mangling for C
This patch force the header to be compiled as C.
This behavior allows to use this library in a C program.
2017-09-26 12:47:42 +02:00
Adam Sawicki
3606138794 Removed redundant VmaDeviceMemoryBlock::m_Size. 2017-09-25 17:42:26 +02:00
Adam Sawicki
40fd505639 Refactored some code from class VmaDeviceMemoryBlock to new class VmaBlockMetadata. 2017-09-25 16:44:48 +02:00
Adam Sawicki
58c090a705 Minor fix in README.md. 2017-09-25 15:47:57 +02:00
Adam Sawicki
42af34a3b2 Renamed members of VmaStatInfo structure to start with lower case, to make it consistent with overall style. Compatibility breaking! 2017-09-25 15:46:47 +02:00
Adam Sawicki
067f9082a8 Some improvements in documentation. 2017-09-25 15:29:34 +02:00