Skip to content

Commit ae78428

Browse files
Improvements in documentation "Resource alignment"
1 parent 3ca443a commit ae78428

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

include/D3D12MemAlloc.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2435,8 +2435,10 @@ You can check if the tight alignment it is available in the current system by ca
24352435
You can tell the library to not use it by specifying D3D12MA::ALLOCATOR_FLAG_DONT_USE_TIGHT_ALIGNMENT.
24362436
Typically, you don't need to do any of those.
24372437
2438+
\par Implementation detail
24382439
The library automatically aligns all buffers to at least 256 B, even when the system supports smaller alignment.
24392440
This is the alignment required for constant buffers, expressed by `D3D12_CONSTANT_BUFFER_DATA_PLACEMENT_ALIGNMENT` constant.
2441+
It is also enough to be aligned to cache line size of conteporary GPUs, which may have positive impact on the performance.
24402442
24412443
\page defragmentation Defragmentation
24422444

0 commit comments

Comments
 (0)