Commit Graph

1173 Commits

Author SHA1 Message Date
Adam Sawicki
a53702cbe2 More fixes based on #385
Thanks @alecazam
2023-11-13 13:59:23 +01:00
Adam Sawicki
b721922bce Added VMA_ASSERT_LEAK macro
See #385 Thanks @alecazam !
2023-11-08 18:14:46 +01:00
Adam Sawicki
b2e7801ff3 Added function vmaGetAllocationInfo2, structure VmaAllocationInfo2
See #383, #340 Thanks @debaetsd !
Rebuilt the docs.
2023-11-08 18:01:19 +01:00
Adam Sawicki
6100c86d5b GpuMemDumpVis/README.md: Added warning about aliasing not supported
Fixes #381 Thanks @alecazam
2023-11-06 11:00:03 +01:00
Adam Sawicki
dc8a3fb0f2 Fixed GpuMemDumpVis.py to not use deprecated Pillow function textsize
See #375 Thanks @alecazam
2023-10-30 18:27:40 +01:00
Adam Sawicki
7bd97fa410 Fixed memory leak in VmaPool_T::~VmaPool_T
Fixes #378 Thanks @alecazam
2023-10-30 18:17:52 +01:00
Adam Sawicki
138ce7bda0 Fix in VmaJsonWriter::ContinueString
Fixes #376 Thanks @alecazam
2023-10-30 18:14:08 +01:00
Adam Sawicki
2f382df218 Fixed signed/unsigned mismatch in FindMemoryPreferences
For compatibility with UBSan. Fixes #368 - thanks @markridgewell
2023-09-11 17:58:15 +02:00
Adam Sawicki
5a8fd79c59
Merge pull request #365 from corporateshark/master
Added LightweightVK
2023-09-07 12:05:39 +02:00
Sergey Kosarevsky
2b6fb6fc8c Added LightweightVK 2023-09-02 16:50:10 -07:00
Adam Sawicki
540544f63a
Merge pull request #364 from manas-kulkarni/master
Make C++20 features optional
2023-09-01 10:53:49 +02:00
manaskulkarni
66bb67cf18 Make C++20 features optional
- Some compilers with C++20 dont have std::popcount
- Support to toggle C++20 features from user side using new VMA_CPP20 macro. If the macro is not defined, it will be set using default logic - #if __cplusplus >= 202002L || _MSVC_LANG >= 202002L
2023-09-01 14:10:40 +05:30
Adam Sawicki
e88fff957b Fixed main memory type selection algorithm for Raspberry Pi
In function FindMemoryPreferences, not requiring HOST_CACHED memory, as some platforms may not have it. See #362 - thanks @cos-public
2023-08-22 13:13:09 +02:00
Adam Sawicki
6cc9fcf66b README: Updated link to the new C++ wrapper
https://github.com/YaaZ/VulkanMemoryAllocator-Hpp - thanks @YaaZ
2023-08-22 11:01:15 +02:00
Adam Sawicki
1add1df154
Merge pull request #360 from turanszkij/master-1
added Wicked Engine to software list
2023-08-15 15:46:53 +02:00
Turánszki János
f428606392
added Wicked Engine to software list 2023-08-07 07:42:36 +02:00
Adam Sawicki
6eb62e1515
Merge pull request #356 from abouvier/cmake-doc
cmake: install docs
2023-07-21 10:35:55 +02:00
Alexandre Bouvier
700db16b54 cmake: install docs 2023-07-19 07:22:03 +02:00
Adam Sawicki
33067f6b4f Refactoring in FindMemoryPreferences
Without changing the logic. Fixes #354. Thanks @marc0246 !
2023-07-14 14:18:53 +02:00
Adam Sawicki
cb08556022 Merge branch 'master' of https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator 2023-07-14 13:56:59 +02:00
Adam Sawicki
6ce692a385 Added callback VmaDefragmentationInfo::pfnBreakCallback that allows to break long execution of vmaBeginDefragmentation
Added also PFN_vmaCheckDefragmentationBreakFunction, VmaDefragmentationInfo::pBreakCallbackUserData.
2023-07-14 13:56:46 +02:00
Adam Sawicki
5b79a5de0e
Merge pull request #355 from juan-lunarg/juan/ignore_vscode_directory
git: ignore .vscode directory
2023-07-14 09:15:52 +02:00
Juan Ramos
09524f7072 git: ignore .vscode directory 2023-07-13 15:27:27 -06:00
Adam Sawicki
2a28bc4b39
Merge pull request #353 from juan-lunarg/juan/include_nitpick
Fixup include of "vk_mem_alloc.h"
2023-07-12 09:50:24 +02:00
Adam Sawicki
53f4c153db
Merge pull request #352 from juan-lunarg/juan/pedantic_cmake_fix
cmake: Use share instead of DATADIR for CMake config files
2023-07-12 09:48:42 +02:00
Juan Ramos
b48d20cc86 Fixup include of "vk_mem_alloc.h"
No need to include via `../include`

By linking against `GPUOpen::VulkanMemoryAllocator` the proper
include directory is added to the project.
2023-07-11 14:13:20 -06:00
Juan Ramos
c5547ffad1 cmake: Use share instead of DATADIR for CMake config files
See the following discussion for context:
https://discourse.cmake.org/t/what-should-the-destination-be-for-a-header-only-librarys-cmake-config-file/8473/2

NOTE: I've never seen this cause an issue before, but better safe than sorry.
Also I think it reads a bit better.

I recently did this for VulkanHeaders so I'd like this fixed here as
well.
2023-07-11 12:59:18 -06:00
Adam Sawicki
9b0fc3e7b0 Fixes in Cmake scripts after merging #350 (2) 2023-07-11 18:40:30 +02:00
Adam Sawicki
01fe410548 Fixes in Cmake scripts after merging #350 2023-07-11 18:00:37 +02:00
Adam Sawicki
c503590e54
Merge pull request #350 from juan-lunarg/vma/346
Make VulkanMemoryAllocator a header only library
2023-07-11 17:40:25 +02:00
Adam Sawicki
6490bb0d54
Merge pull request #351 from lobneroO/FixCopyPasteError
fixed copy paste error in vulkan sample
2023-07-10 15:01:11 +02:00
Tim Lobner
3cb5470faa fixed copy paste error in vulkan sample 2023-07-10 14:28:30 +02:00
Juan Ramos
3d23bb07e3 Make VulkanMemoryAllocator a header only library
Dramatically simplify the CMake code for end users. The intent
is to make the CMake for this library very easy to maintain.
While also making it easier for end users to consume.

This makes the CMake code very similar to:
- KhronosGroup/Vulkan-Headers
- KhronosGroup/SPIRV-Headers

Which is good for consistency/expectations.

The VmaUsage library still highlights the expected usage of
the "stb-style" single header file in a project.

closes #346
2023-07-06 14:49:44 -06:00
Adam Sawicki
d9a2e4641b
Merge pull request #341 from abouvier/patch-1
cmake: correctly use find_dependency
2023-07-04 15:24:42 +02:00
Alexandre Bouvier
870bae0fca cmake: use find_dependency 2023-07-04 15:09:36 +02:00
Adam Sawicki
db15ce374e
Merge pull request #345 from abouvier/cmake-fix
cmake: always add vulkan headers dir
2023-07-04 13:46:16 +02:00
Adam Sawicki
1f38a49cc8
Merge pull request #347 from Rob2309/extends-marker
Add attribute to mark pNext pointers with the Vulkan struct they extend
2023-07-04 10:24:24 +02:00
Alexandre Bouvier
7f9124bad2 cmake: always add vulkan headers dir 2023-06-30 20:57:03 +02:00
Robin Quint
1d0e8ba3b3 Added small documentation 2023-06-30 17:42:12 +02:00
Robin Quint
ca5ce7df23 Added VMA_EXTENDS_VK_STRUCT 2023-06-30 17:39:36 +02:00
Adam Sawicki
0aa3989b8f Switched src/CMakeLists.txt to use C++17 by default to resolve issues with aligned_alloc
Fixes #344
2023-06-13 14:33:10 +02:00
Adam Sawicki
59734bbc63 A fix in VmaBlockMetadata_TLSF::CreateAllocationRequest
Code by @medranSolus. See #343
2023-06-12 13:30:02 +02:00
Adam Sawicki
0e89587db3 Updated Doxyfile for Doxygen 1.9.6
Regenerated documentation.
Fixes #335
2023-05-02 12:44:06 +02:00
Adam Sawicki
ff37e92786 Fixed bug in VmaDefragmentationContext_T::ComputeDefragmentation_Extensive
Fixes #328. Code by @medranSolus.
2023-04-07 10:58:24 +02:00
Adam Sawicki
7e63caa879 Fix in VmaDefragmentationContext_T::CounterStatus
See #327. Code by @medranSolus.
2023-04-06 11:25:09 +02:00
Adam Sawicki
e2f5eed2e2 Revert "Merge pull request #325 from lawadr/use-alignof" 2023-04-03 17:49:00 +02:00
Adam Sawicki
498e20dfd1
Merge pull request #326 from stha09/gcc13
IWYU: add cstdio for snprintf in vk_mem_alloc.h
2023-04-03 17:46:31 +02:00
Stephan Hartmann
383f06b9fd IWYU: add cstdio for snprintf in vk_mem_alloc.h
Discoverd with upcoming GCC 13.
2023-04-02 21:19:16 +02:00
Adam Sawicki
41baf86685
Merge pull request #325 from lawadr/use-alignof
Change __alignof to alignof
2023-03-22 17:42:59 +01:00
lawadr
d16730ce64 Change __alignof to alignof
Whereas __alignof is a non-standard compiler extension that seems to
come from Microsoft and is supported (yet undocumented) by Clang and
GCC, alignof is a standard language feature in C++11. Clang and GCC
both document __alignof__ as a compiler extension, but this isn't
supported by Microsoft.

This fixes builds on compilers that don't support __alignof.
2023-03-22 15:33:11 +00:00