Adam Sawicki
f2012055cc
Added support for VK_EXT_memory_priority
...
Added VMA_ALLOCATOR_CREATE_EXT_MEMORY_PRIORITY_BIT, VmaAllocationCreateInfo::priority, VmaPoolCreateInfo::priority.
See #160
2021-01-11 18:04:42 +01:00
Adam Sawicki
18b0407f32
Further improvements in documentation.
2020-11-03 17:20:59 +01:00
Adam Sawicki
acecd26121
Fixes and clarifications in documentation
2020-11-03 15:01:56 +01:00
Adam Sawicki
3528e2aed3
Minor formatting fix in documentation
...
Regenerated documentation using new Doxygen.
2020-10-15 15:04:12 +02:00
Adam Sawicki
0620c8e5e1
Add test and documentation for resource aliasing (overlap).
2020-08-18 16:43:44 +02:00
Adam Sawicki
0ef61c2fd5
Fix in documentation chapter "Finding out if memory is mappable"
...
Fixes #143
2020-08-18 14:20:37 +02:00
Doğukan Korkmaztürk
67bf13cd08
Fix a typo in the explanation of VMA_ALLOCATION_CREATE_MAPPED_BIT
2020-07-27 23:55:03 -04:00
Adam Sawicki
aaa1a56167
Clarify documentation of VmaAllocationInfo::size
...
Added test for it. Regenerated documentation.
2020-06-24 17:41:09 +02:00
Adam Sawicki
72983b0aa1
Clarified documentation in few places to mention textures need to use LINEAR layout when accessed from the host
...
Rebuilt HTML documentation. Used new Doxygen 1.8.18.
Closes #129
2020-05-08 18:43:25 +02:00
Adam Sawicki
25d9b2c0ec
Add function vmaFlushAllocations, vmaInvalidateAllocations for multiple allocations at once
...
Closes #119
Added internal class VmaSmallVector.
Refactored common code into a new function VmaAllocator_T::GetFlushOrInvalidateRange.
Regenerated docs.
2020-04-19 19:02:28 +02:00
Adam Sawicki
facf05ee63
Some fixes after fb3a337
#115
2020-04-08 17:09:59 +02:00
Adam Sawicki
f575c5070b
Further changes in importing pointers to Vulkan functions
...
Reverted change removing configuration macro VMA_STATIC_VULKAN_FUNCTIONS.
Added configuration macro VMA_DYNAMIC_VULKAN_FUNCTIONS.
Fixes for Android.
Closes #111 , also refers to #56 .
2020-03-31 19:11:41 +02:00
Adam Sawicki
451bf601d8
Bump version number to 3.0.0-development as we broken backward compatibility
...
Also rebuilt the docs.
2020-03-23 18:24:02 +01:00
Adam Sawicki
e73e988daf
Add support for buffer device address, together with documentation and tests
...
Added VMA_ALLOCATOR_CREATE_BUFFER_DEVICE_ADDRESS_BIT.
2020-03-20 18:05:42 +01:00
Adam Sawicki
a1d992f5d1
Add function vmaGetAllocatorInfo, structure VmaAllocatorInfo
...
Closes #99
Also rebuilt Doxygen documentation.
2020-03-02 15:32:10 +01:00
Adam Sawicki
76004205fd
Add documentation chapter about VK_AMD_device_coherent_memory extension usage
...
Regenerated Doxygen documentation.
2020-02-07 17:18:35 +01:00
Adam Sawicki
508825012c
Add support for VK_AMD_device_coherent_memory extension
...
- Added VMA_ALLOCATOR_CREATE_AMD_DEVICE_COHERENT_MEMORY_BIT.
- Fixed bug generating validation layers error when the extension is not enabled.
- Updated date in copyright header comments to year 2020.
2020-02-07 16:51:31 +01:00
Adam Sawicki
c8eec757fd
Minor addition to the documentation regarding allocation string names
2019-12-18 13:37:38 +01:00
Adam Sawicki
e9bfb539d8
Publish version 2.3.0 final
...
Updated version number. Regenerated Release binaries and Doxygen documentation.
2019-12-04 14:26:59 +01:00
Adam Sawicki
cd7bc20429
Clarify documentation in regards to cache flush/invalidate in few places
...
See #91 , thanks @ROTARTSI82 !
2019-12-02 13:42:25 +01:00
Adam Sawicki
4670506a22
Announce version 2.3.0-alpha.1
2019-11-25 12:46:57 +01:00
Adam Sawicki
1296e2db4d
VmaReplay: Switch to Vulkan 1.1
...
Recording file format version bumped to 1.8 to support "VulkanApiVersion".
VmaReplay now uses Vulkan 1.1 by default and so it removes parameter --VK_KHR_dedicated_allocation.
2019-11-25 11:13:53 +01:00
Adam Sawicki
69185555f4
Add VMA_MEMORY_USAGE_GPU_LAZILY_ALLOCATED
...
Closes #84
2019-11-18 17:03:34 +01:00
Adam Sawicki
c22c72fa4b
Regenerate Doxygen documentation
2019-11-18 16:39:48 +01:00
Adam Sawicki
52d0272459
Regenerate documentation, rebuild binaries
...
Switched binaries from vs2017 to vs2019.
2019-11-18 15:03:59 +01:00
Adam Sawicki
a63e37c656
Add support for memory budget to record&replay system
2019-11-18 13:40:03 +01:00
Adam Sawicki
b68b368c67
Merge branch 'master' into MemoryBudget
2019-11-18 13:15:18 +01:00
Adam Sawicki
dd24989837
Update recording file format documentation
...
I forgot to commit this file.
2019-11-18 12:38:09 +01:00
Adam Sawicki
48b8a33869
Fixes and adjustments for budget, regenerate documentation
2019-11-02 15:24:33 +01:00
Adam Sawicki
2024cc570a
Change default value of macro VMA_RECORDING_ENABLED to 0
...
...so that Windows.h is not included by default on Windows.
2019-07-02 15:19:05 +02:00
Adam Sawicki
4abe30c1ae
Add functions vmaBindBufferMemory2, vmaBindImageMemory2, flag VMA_ALLOCATOR_CREATE_KHR_BIND_MEMORY2_BIT
...
This change adds usage of VK_KHR_bind_memory2 extension.
Also add structure members VmaVulkanFunctions::vkBindBufferMemory2KHR, vkBindImageMemory2KHR.
2019-07-02 14:37:21 +02:00
Adam Sawicki
4a4cfad2eb
Make vmaResizeAllocation deprecated, always return failure unless newSize == current size
...
Bump CSV file format version to 1,6.
2019-07-02 12:54:35 +02:00
Adam Sawicki
543ba5baec
Minor fix in documentation regarding CSV recording
2019-07-02 12:37:36 +02:00
Adam Sawicki
af88c1bde1
Fix tests and documentation to use vmaBind* instead of vkBind* functions after defragmentation
2019-07-02 12:34:26 +02:00
Adam Sawicki
87cea36670
Add "Common mistakes" documentation chapter
2019-07-02 12:24:48 +02:00
Adam Sawicki
938b19a8c1
Minor addition in documentation, "Configuration” section
...
See #67
2019-07-01 12:12:51 +02:00
Adam Sawicki
d53dc4b211
Revert "change documentation to allow defragmentation of only buffers not images"
...
This reverts commit c9f948243c
.
Fixes #59
2019-04-18 13:27:43 +02:00
Adam Sawicki
c9f948243c
change documentation to allow defragmentation of only buffers not images
...
#59
2019-04-17 13:33:27 +02:00
Adam Sawicki
672f7c8e94
clarify documentation regarding limitations of defragmentation
...
#59
2019-04-17 11:53:02 +02:00
Adam Sawicki
e5aa3c0a1e
Clarified that the library doesn't use STL containers by default.
...
Because responses in the survey indicate that some users think it does.
2019-03-15 12:26:36 +01:00
Adam Sawicki
b25a20a8da
Improved documentation for functions vkFlushMappedMemoryRanges, vkInvalidateMappedMemoryRanges.
2019-03-13 15:57:23 +01:00
Adam Sawicki
6c8b7a2c3e
Added flag VMA_ALLOCATION_CREATE_DONT_BIND_BIT.
2019-03-05 13:40:29 +01:00
Adam Sawicki
796cdc62f6
Updated documentation - added information about VK_AMD_memory_allocation_behavior extension.
...
Regenerated documentation, using new Doxygen version.
2019-01-15 11:45:58 +01:00
Adam Sawicki
ae5c4661ec
Updated copyright headers after New Year.
2019-01-02 10:23:35 +01:00
Adam Sawicki
302156412f
Fixes in class diagram
2018-12-20 16:40:35 +01:00
Adam Sawicki
b0aa71fbe2
Added VMA_class_diagram.png - for Wiki.
2018-12-20 16:02:28 +01:00
Adam Sawicki
7c09f1a831
Fixed major bug, made few smaller fixes and additions in documentation.
2018-12-14 11:37:02 +01:00
Adam Sawicki
663b0c9567
Minor fixes in documentation.
2018-12-13 12:15:01 +01:00
Adam Sawicki
bdb89a93eb
Final fixes before v2.2.0 release. Minor fixes after tests. Rebuilt binaries and documentation again.
2018-12-13 11:56:30 +01:00
Adam Sawicki
1a8424f41a
Preparations for v2.0.0 release. Updated version numbers. Rebuilt binaries and documentation.
2018-12-13 11:01:16 +01:00
Adam Sawicki
0f99b56168
Merge branch 'master' into v2.2
...
# Conflicts:
# docs/html/vk__mem__alloc_8h_source.html
2018-12-13 10:48:38 +01:00
Adam Sawicki
dd48c3a8c4
Minor update in documentation. Regenerated Doxygen documentation.
2018-12-12 11:56:45 +01:00
Adam Sawicki
71db590d7d
Merge branch 'sparse_binding_example' into v2.2
...
# Conflicts:
# docs/html/vk__mem__alloc_8h_source.html
# src/Tests.cpp
# src/VmaReplay/VmaReplay.cpp
# src/VulkanSample.cpp
# src/vk_mem_alloc.h
2018-12-10 14:45:56 +01:00
Adam Sawicki
5c8af7b8b2
Rebuilt binary and Doxygen documentation.
2018-12-10 13:34:54 +01:00
Adam Sawicki
a12a7fe43e
Added support for functions vmaDefragmentationBegin, vmaDefragmentationEnd to recording file format and VmaReplay.
2018-12-10 12:36:42 +01:00
Adam Sawicki
920bfbe6f3
Bumped recording file format version to 1.5.
...
(Partial cherry pick from branch sparse_binding_example.)
2018-12-10 10:27:12 +01:00
Adam Sawicki
0d601d8789
Added documentation chapter "Writing custom defragmentation algorithm".
2018-12-07 23:09:46 +01:00
Adam Sawicki
638f42dd67
Rewritten documentation chapter about defragmentation.
2018-12-07 15:24:28 +01:00
Adam Sawicki
0eeed59309
Merge branch 'master' into allocation_defragmentation_strategies
...
# Conflicts:
# docs/html/vk__mem__alloc_8h_source.html
2018-12-06 14:52:11 +01:00
Adam Sawicki
2e900cae54
Added functions vmaAllocateMemoryPages, vmaFreeMemoryPages to VmaRecorder and VmaReplay. Bumped recording file format version to 1.5.
...
Support for sparse binding is now finished and ready!
2018-12-06 14:26:50 +01:00
Adam Sawicki
6a6d8c6ea2
Merge branch 'master' into sparse_binding_example
...
# Conflicts:
# docs/html/vk__mem__alloc_8h.html
# docs/html/vk__mem__alloc_8h_source.html
# src/Tests.cpp
# src/VulkanSample.cpp
# src/vk_mem_alloc.h
2018-12-05 13:20:32 +01:00
Adam Sawicki
3b392258e2
Documentation: Added mention of VK_AMD_memory_overallocation_behavior extension.
2018-11-20 11:33:07 +01:00
Adam Sawicki
48a12aa835
Merge branch 'master' into allocation_defragmentation_strategies
...
# Conflicts:
# docs/html/vk__mem__alloc_8h_source.html
# src/Tests.cpp
# src/vk_mem_alloc.h
2018-11-16 14:36:57 +01:00
Adam Sawicki
99f2d3543c
Minor update in documentation.
2018-11-16 13:48:11 +01:00
Adam Sawicki
7f97202add
Updated documentation of memory mapping with known bug in MoltenVK, based on #47 . Thanks @DiegoAce !
2018-11-16 13:43:34 +01:00
Adam Sawicki
b0c363693f
Added function vmaResizeAllocation.
...
Added tests: function TestResize. Bumped CSV recording file format version to 1.4.
2018-11-13 16:17:38 +01:00
Adam Sawicki
7a6e442b66
Fixes in documentation: "Features not supported".
2018-11-08 18:46:04 +01:00
Adam Sawicki
fc9db8dda7
Minor addition to documentation. #46
2018-10-18 12:03:50 +02:00
Adam Sawicki
fa87ae34a6
Small addition to documentation.
2018-10-15 18:15:11 +02:00
Adam Sawicki
012a4ac697
Designed and documented new interface for defragmentation.
...
Added: VmaDefragmentationContext, VmaDefragmentationFlagBits, VmaDefragmentationFlags, VmaDefragmentationInfo2, vmaDefragmentationBegin(), vmaDefragmentationEnd(). Extended VmaDefragmentationStats by allocationsLost. Deprecated VmaDefragmentationInfo2, vmaDefragment().
2018-10-09 13:25:01 +02:00
Adam Sawicki
d062b784d3
Added functions: vmaAllocateMemoryPages, vmaFreeMemoryPages to create and destroy multiple allocations at once.
2018-10-03 15:26:22 +02:00
Adam Sawicki
7ce9630bbf
Improved documentation chapters: Defragmentation, vmaDefragment(), Features not supported.
2018-09-28 14:51:09 +02:00
Adam Sawicki
3951aa5bc3
Merge branch 'allocation_defragmentation_strategies' into development
...
# Conflicts:
# docs/html/search/all_f.js
# docs/html/vk__mem__alloc_8h.html
# docs/html/vk__mem__alloc_8h_source.html
# src/vk_mem_alloc.h
2018-09-21 16:48:42 +02:00
Adam Sawicki
c6432d1d45
Buddy allocation algorithm finished and documented!
2018-09-21 16:44:16 +02:00
Adam Sawicki
f305aebdfd
Fixed version number in source file.
2018-09-10 14:07:32 +02:00
Adam Sawicki
e929bab5d8
Prepared version 2.1.0 final. Rebuilt binaries. Updated CHANGELOG.md. Rebuilt Doxygen dovcumentation (with new Doxygen version).
2018-09-10 11:14:05 +02:00
Adam Sawicki
ca5db0b8a5
Rebuilt Doxygen documentation after upgrading Doxygen version.
2018-09-07 14:58:49 +02:00
Adam Sawicki
a5d5ffafe2
Updated CHANGELOG.md. Recompiled binaries and Doxygen documentation.
2018-08-27 11:05:24 +02:00
Adam Sawicki
f9b6868cf1
Described version 2.1.0-beta.1 in CHANGELOG.md.
...
Minor fixes in documentation.
2018-08-24 12:13:37 +02:00
Adam Sawicki
4c6e9e81bc
Linear allocation algorithm is finished! Recompiled binaries, regenerated Doxygen documentation. Announcing version 2.1.0-beta.1.
2018-08-24 11:23:37 +02:00
Adam Sawicki
dedab850e9
Documented linear allocation algorithm. Added "Linear allocation algorithm" documentation chapter.
2018-08-23 15:00:58 +02:00
Adam Sawicki
62c0090112
Recompiled binaries. Bumped version number to Version 2.1.0-alpha.4.
2018-08-22 11:54:36 +02:00
Adam Sawicki
cb4e8da23b
Updated file format to 1,3. Added configuration section.
2018-08-21 17:56:25 +02:00
Adam Sawicki
2556b377f7
Record and replay: Added support for function vmaMakePoolAllocationsLost.
2018-08-21 12:04:19 +02:00
Adam Sawicki
fd64a60957
Added documentation of the whole "Record and replay" feature to Doxygen docs and README.md.
2018-08-21 11:38:32 +02:00
Adam Sawicki
80cb2365c5
Added recording and replaying of calls to functions: vmaTouchAllocation, vmaGetAllocationInfo. VmaReplay: fixed handling of null allocation.
2018-08-21 10:59:53 +02:00
Adam Sawicki
b3ea2c62f1
"Recording file format.md": added example file.
2018-08-21 10:45:23 +02:00
Adam Sawicki
3eb870d6d6
Added documentation for new code elements related to recording. Added "Recording file format.md" file.
2018-08-20 17:53:02 +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
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
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
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
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
5a51732c47
Added link to my GDC talk.
2018-04-03 12:28:11 +02:00
Adam Sawicki
be9436868e
Regenerated documentation.
2018-03-13 17:38:40 +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