Adam Sawicki
8730bb40bb
Fixed bug in BuildStatsString when Resource Heap Tier 2 is not supported
...
Other changes pulled from branch feature-gpu-upload-heaps (without pulling the main feature).
2023-07-05 10:20:41 +02:00
Adam Sawicki
b6c5bea3cd
Added support for GPU Upload Heaps from Agility SDK 1.710.0-preview
...
Added Allocator::IsGPUUploadHeapSupported.
Extended TotalStatistics::HeapType[] to 5 elements.
2023-07-05 10:09:03 +02:00
Carsten Rudolph
9c8c799fcf
Update prefix and documentation.
2023-04-12 15:30:05 +02:00
Carsten Rudolph
7234846ff5
Support using open-sourced DirectX headers.
2023-04-04 17:16:47 +02:00
Adam Sawicki
5b0874e95a
Refactoring after merge - fixed spaces instead of tabs
2022-12-16 14:28:42 +01:00
Adam Sawicki
1c6ebc8373
Merge pull request #44 from RuslanKutdusov/master
...
CreateCommittedResource3 and CreatePlacedResource2 support
2022-12-16 14:22:44 +01:00
Adam Sawicki
fbbfa4b14d
Renamed the new member to POOL_DESC::ResidencyPriority
2022-12-15 16:32:24 +01:00
Adam Sawicki
396d871e4d
Bumped version number because of the addition to the API
2022-12-15 16:24:05 +01:00
Adam Sawicki
ad4dbc18fd
Added POOL_DESC::Priority
2022-12-15 16:23:26 +01:00
Adam Sawicki
7597f717c7
Fixed a bug in the documentation
...
Regenerated HTML documentation using new Doxygen 1.9.5.
2022-10-26 15:17:25 +02:00
ruslan_kutdusov
c2c78fe042
add support of ID3D12Device10::CreateCommittedResource3, ID3D12Device8::CreatePlacedResource2 and perhaps all possible future versions of them
2022-07-28 19:48:29 +03:00
Marcin Kienast
3b129882ef
Use list initialization for atomics
2022-07-15 17:50:59 +02:00
Adam Sawicki
434fd4eba4
Minor fixes. Updated to Doxygen 1.9.4.
2022-06-14 15:22:23 +02:00
Adam Sawicki
4d0aa40810
Updated version number
2022-06-14 13:43:51 +02:00
Adam Sawicki
d6ff05eb2a
Updated documentation regarding thread safety of defragmentation
2022-04-19 16:42:07 +02:00
Adam Sawicki
6a61103936
Releasing version 2.0.1
2022-04-05 14:35:35 +02:00
Adam Sawicki
2d7d710944
Added missing changes
2022-03-30 13:23:01 +02:00
Adam Sawicki
3365a2d0e1
Added documentation section "Resource reference counting"
2022-03-30 13:22:03 +02:00
Adam Sawicki
ce48386e5c
Added test for JSON dump with custom pools and their names
2022-03-29 15:09:17 +02:00
Adam Sawicki
17f992a0ad
Updated version number and CHANGELOG.md
...
Regenerated documentation and executable.
2022-03-25 11:33:00 +01:00
Adam Sawicki
36ce392aee
Added ALLOCATOR_FLAG_MSAA_TEXTURES_ALWAYS_COMMITTED, POOL_FLAG_MSAA_TEXTURES_ALWAYS_COMMITTED
...
Code by @medranSolus
2022-03-24 15:54:47 +01:00
Adam Sawicki
10bff5ec74
Fix for case when a large allocation is made with ALLOCATION_FLAG_CAN_ALIAS
...
Code by @medranSolus
2022-03-24 13:58:50 +01:00
Adam Sawicki
98218850d6
New JSON dump format
...
Unified across VMA and D3D12MA.
Updated Python script for visualization - now called GpuMemDumpVis.py.
Code by @medranSolus
2022-03-24 12:14:27 +01:00
Adam Sawicki
d0cc54c5ad
Added documentation chapter about defragmentation
2022-03-15 11:32:07 +01:00
Adam Sawicki
2fd8ea323a
Added ALLOCATOR_FLAG_DEFAULT_POOLS_NOT_ZEROED
...
Code by @medranSolus
2022-03-14 14:40:22 +01:00
Adam Sawicki
fbd11f01ae
Added ALLOCATION_FLAG_CAN_ALIAS flag to prevent from using committed allocations on aliasing resources.
...
Code by @medranSolus
2022-03-14 14:30:34 +01:00
Adam Sawicki
d2639287ed
Added defragmentation.
...
Added enum DEFRAGMENTATION_FLAGS, struct DEFRAGMENTATION_DESC, enum DEFRAGMENTATION_MOVE_OPERATION, struct DEFRAGMENTATION_MOVE, struct DEFRAGMENTATION_PASS_MOVE_INFO, struct DEFRAGMENTATION_STATS, class DefragmentationContext, methods Pool::BeginDefragmentation, Allocator::BeginDefragmentation.
Added flags ALLOCATION_FLAG_STRATEGY_MIN_MEMORY = ALLOCATION_FLAG_STRATEGY_BEST_FIT, ALLOCATION_FLAG_STRATEGY_MIN_TIME = ALLOCATION_FLAG_STRATEGY_FIRST_FIT, ALLOCATION_FLAG_STRATEGY_MIN_OFFSET, ALLOCATION_FLAG_STRATEGY_MASK.
Added flags VIRTUAL_ALLOCATION_FLAG_STRATEGY_MIN_MEMORY, VIRTUAL_ALLOCATION_FLAG_STRATEGY_MIN_TIME, VIRTUAL_ALLOCATION_FLAG_STRATEGY_MIN_OFFSET, VIRTUAL_ALLOCATION_FLAG_STRATEGY_MASK
Added members Allocation::GetAlignment, SetResource, SetPrivateData, GetPrivateData, ALLOCATION_DESC::pPrivateData.
Renamed ALLOCATION_CALLBACKS::pUserData to pPrivateData, VirtualBlock::SetAllocationUserData to SetAllocationPrivateData.
Code by @medranSolus
2022-03-11 16:46:19 +01:00
Adam Sawicki
647f109a84
Added documentation chapter "Versioning and compatibility"
2022-02-26 13:26:44 +01:00
Adam Sawicki
a0376f7261
Minor fixes in the documentation
2022-02-24 22:51:49 +01:00
Adam Sawicki
ae2ea0b293
Fixes in the documentation
2022-02-24 17:13:16 +01:00
Adam Sawicki
8f02da698d
Minor fix: removed HEAP_TYPE_COUNT constant from the public interface
2022-02-24 16:04:58 +01:00
Adam Sawicki
f3af1d9a30
Finished major refactoring of the statistics and budget API. COMPATIBILITY BREAKING!
...
See structures: Statistics, DetailedStatistics, TotalStatistics, Budget.
Functions: Allocator::GetMemoryCapacity, GetBudget, CalculateStatistics,
Pool::GetStatistics, CalculateStatistics,
VirtualAllocation::GetStatistics, CalculateStatistics.
Updated and rebuilt the docs.
2022-02-24 16:02:04 +01:00
Adam Sawicki
92d23c0cba
Refactoring of statistics API. COMPATIBILITY BREAKING!
...
See structures: Statistics, DetailedStatistics, TotalStatistics, functions: Pool::GetStatistics, Pool::CalculateStatistics, VirtualBlock::GetStatistics, VirtualBlock::CalculateStatistics, Allocator::CalculateStatistics.
Switched to TSLF algorithm as the default. Removed: POOL_FLAG_ALGORITHM_TLSF, VIRTUAL_BLOCK_FLAG_ALGORITHM_TLSF.
2022-02-23 10:30:34 +01:00
Adam Sawicki
3a3b44555a
Added possibility to choose different allocation algorithm in custom pools and virtual blocks.
...
Changed behavior of VirtualBlock::Allocate, FreeAllocation: VirtualAllocation::AllocHandle = 0 (not UINT64_MAX) now means null allocation.
Ported linear allocation algorithm from VMA.
Renamed VIRTUAL_ALLOCATION_INFO members to uppercase Offset, Size.
Fixed D3D12MA_DEBUG_MARGIN not to be applied to virtual allocator.
Added test for D3D12MA_DEBUG_MARGIN (ported from VMA).
Code mostly by @medranSolus
Updated and rebuilt documentation.
2022-02-04 13:22:45 +01:00
Adam Sawicki
e99d1c9687
Added VirtualAllocation for VirtualBlock describing single allocation. COMPATIBILITY BREAKING!
...
Moved to using AllocHandle as unique identifier for single allocation instead of offset.
Changed D3D12_DEBUG_MARGIN to only be present at the end of each allocation.
Removed unused BlockMetadata::GetUnusedRangeSizeMax().
Added TLSF allocation algorithm - unused for now.
Code by @medranSolus
2022-02-01 12:31:35 +01:00
Adam Sawicki
517601c720
Updated copyright headers to year 2022
...
Change by @medranSolus
2022-01-21 13:01:05 +01:00
Adam Sawicki
9c97fcaae0
Changed the way ProtectedSession is passed. COMPATIBILITY BREAKING!
...
Using ProtectedSession now requires using custom pools.
Added POOL_DESC::pProtectedSession. Removed Allocator::CreateResource1, AllocateMemory1. Removed parameter pProtectedSession from Allocator::CreateCommittedResource2.
Code mostly by @medranSolus.
2022-01-13 13:14:49 +01:00
Adam Sawicki
4488fa2a73
Improved and rebuilt documentation
2021-12-03 18:08:24 +01:00
rayferric
69df7fe9d1
Add option to build as shared library
2021-11-24 01:22:58 +01:00