Attractadore
f000f1b369
Fix windows.h not found when cross compiling on Linux
...
The header provided by mingw-w64 on Linux is called windows.h.
2022-06-19 20:54:03 +03:00
Monika0000
bbc3d15390
fix re-defines
2022-06-14 04:13:30 +10:00
Adam Sawicki
a6bfc23725
Releasing version 3.0.1
...
Some fixes in tests for Nvidia cards.
2022-05-26 11:51:12 +02:00
Adam Sawicki
aee61b1d25
Added new API for selecting preferred memory type: VMA_MEMORY_USAGE_AUTO, VMA_MEMORY_USAGE_AUTO_PREFER_DEVICE, VMA_MEMORY_USAGE_AUTO_PREFER_HOST, VMA_ALLOCATION_CREATE_HOST_ACCESS_SEQUENTIAL_WRITE_BIT, VMA_ALLOCATION_CREATE_HOST_ACCESS_RANDOM_BIT, VMA_ALLOCATION_CREATE_HOST_ACCESS_ALLOW_TRANSFER_INSTEAD_BIT
...
Old values like VMA_MEMORY_USAGE_GPU_ONLY still work as before, for backward compatibility.
Updated documentation accordingly.
Introduced a concept of mappable and non-mappable allocations - with VMA_MEMORY_USAGE_AUTO* an intent to map has to be specified using VMA_ALLOCATION_CREATE_HOST_ACCESS*.
Added mapping hysteresis logic (internal class VmaMappingHysteresis, config macro VMA_MAPPING_HYSTERESIS_ENABLED) that prevents too many calls vkMapMemory/vkUnmapMemory back and forth.
Internal improvement in VmaBlockVector::AllocatePage to try to keep mappable and non-mappable allocations separate.
2022-02-17 14:44:06 +01:00
Adam Sawicki
f451b94158
Fixed vmaBuildVirtualBlockStatsString, vmaFreeVirtualBlockStatsString to also be inside #if VMA_STATS_STRING_ENABLED
...
Updated copyright headers for to year 2022.
Change by @medranSolus
2022-01-21 12:56:18 +01:00
Adam Sawicki
4586be47d8
Fixed usage of VMA_STATIC_VULKAN_FUNCTIONS, VMA_DYNAMIC_VULKAN_FUNCTIONS in CmakeLists.txt
...
Fixes #215
2021-12-17 12:11:06 +01:00
Adam Sawicki
f529a86ab5
Added VmaVulkanFunctions::vkGetInstanceProcAddr, vkGetDeviceProcAddr
...
These are now required when using VMA_DYNAMIC_VULKAN_FUNCTIONS. Compatibility breaking!
Closes #211
2021-11-29 17:52:30 +01:00
Adam Sawicki
1b0bd18053
Standardized line endings to LF
...
See also #195
2021-09-30 12:03:35 +02:00
Sergey Kosarevsky
73f3aed74d
Fixed issue #192 with hardcoded VK_USE_PLATFORM_WIN32_KHR
2021-09-20 15:11:21 +03:00
Johannes Schneider
c9777daabb
Remove macros which can be configured through CMake from VmaUsage.h
2021-06-02 23:18:54 +02:00
Adam Sawicki
59ec0809a7
Moved main file vk_mem_alloc.h to subdirectory include/
...
WARNING! This can break external code that depends on directory structure of this repository!
Closes #165
2021-04-19 13:46:49 +02:00
Adam Sawicki
aa18374368
Updated copyright header to year 2021.
...
Rebuilt binaries, regenerated documentation.
2021-02-16 17:28:49 +01:00
Adam Sawicki
0d4f5234fd
Updated README.md - added RPCS3 to the list of known usages.
...
Also changed sample app to use Vulkan 1.2 by default.
2021-02-16 16:54:27 +01:00
Adam Sawicki
f9921aefdd
Fix VmaAllocator_T::ImportVulkanFunctions_Dynamic for cases when Vulkan 1.1 is used
...
#133
2020-06-04 13:31:31 +02:00
Adam Sawicki
facf05ee63
Some fixes after fb3a337
#115
2020-04-08 17:09:59 +02:00
Adam Sawicki
8ef0d201ef
Merge branch 'Vulkan1_2'
2020-03-02 15:43:47 +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
cdd30bb46d
Prepare to support Vulkan 1.2
...
No way to test for now because no Vulkan SDK available.
2020-01-20 17:19:41 +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
10f68cb139
Vulkan 1.1 suport - prototype
2019-11-22 17:41:59 +01:00
Adam Sawicki
a900b56aed
Merge pull request #87 from Nyufu/clang_cl_support
...
Added clang compile support on windows
2019-11-18 15:18:45 +01:00
Andras Nyiscsak
641a16cc9c
Added clang compile support on windows
2019-11-18 15:09:34 +01:00
Adam Sawicki
4ac8ff89c2
Multiple fixes in budget management
...
Including correct handling of lost allocation.
2019-11-18 14:47:33 +01:00
Adam Sawicki
5afe7845a1
Fix alignment of VmaPoolAllocator::Item::Value
...
Disable Visual Studio warning C4324.
See #71
2019-07-26 15:09:07 +02: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
fd366b60b4
Minor fixes in tests. Found a bug. Minor refactoring - added VmaAllocationRequestType. Fixed minor bug in VmaBlockMetadata_Linear::CreateAllocationRequest_LowerAddress.
2019-01-24 15:26:43 +01:00
Adam Sawicki
ae5c4661ec
Updated copyright headers after New Year.
2019-01-02 10:23:35 +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
e8b01485ce
Small change not to #include <vulkan/vulkan.h> if it was already included (possible from a different path) before including VMA. Issue #50 Thanks @baldurk !
2018-12-06 14:47:59 +01:00
Adam Sawicki
f863a1dbd0
Used VMA_RW_MUTEX in 2 other places for optimization.
2018-10-10 16:43:44 +02:00
Adam Sawicki
c7d1b584b7
Fixes for compilation under Linux gcc and clang. #2
2018-08-27 12:30:53 +02:00
Adam Sawicki
0a60713b07
Added benchmark for linear allocator.
2018-08-24 11:18:41 +02:00
Adam Sawicki
e5d9b01a3a
Added macro VMA_RECORDING_ENABLED, enabled only on Windows for now.
2018-08-20 15:50:03 +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
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
f1a793cadd
Added source files to project: Common.*, Tests.*, VmaUsage.*.
2018-03-13 15:42:22 +01:00