Skip to content

Commit 96e58ad

Browse files
authored
Merge pull request #90 from sawickiap/master
New updates to D3D12 Memory Allocator
2 parents 0fa62ed + fb4566d commit 96e58ad

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# 3.1.0 (2026-02-23)
22

3-
- Added supported for resource tight alignment (feature added in Agility SDK 1.618.1). It is used automatically when available.
3+
- Added support for resource tight alignment (feature added in Agility SDK 1.618.1). It is used automatically when available.
44
- Added function `Allocator::IsTightAlignmentSupported`.
55
- Added `ALLOCATOR_FLAG_DONT_USE_TIGHT_ALIGNMENT`.
66
- Fixes and improvements in the internal function `AllocatorPimpl::GetResourceAllocationInfo` (which decides when to use small alignment or tight alignment), including:

src/D3D12MemAlloc.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -703,6 +703,13 @@ static UINT GetBitsPerPixel(DXGI_FORMAT format)
703703
case DXGI_FORMAT_R24_UNORM_X8_TYPELESS:
704704
case DXGI_FORMAT_X24_TYPELESS_G8_UINT:
705705
return 32;
706+
case DXGI_FORMAT_B8G8R8A8_UNORM:
707+
case DXGI_FORMAT_B8G8R8X8_UNORM:
708+
case DXGI_FORMAT_B8G8R8A8_TYPELESS:
709+
case DXGI_FORMAT_B8G8R8A8_UNORM_SRGB:
710+
case DXGI_FORMAT_B8G8R8X8_TYPELESS:
711+
case DXGI_FORMAT_B8G8R8X8_UNORM_SRGB:
712+
return 32;
706713
case DXGI_FORMAT_R8G8_TYPELESS:
707714
case DXGI_FORMAT_R8G8_UNORM:
708715
case DXGI_FORMAT_R8G8_UINT:
@@ -717,6 +724,9 @@ static UINT GetBitsPerPixel(DXGI_FORMAT format)
717724
case DXGI_FORMAT_R16_SNORM:
718725
case DXGI_FORMAT_R16_SINT:
719726
return 16;
727+
case DXGI_FORMAT_B5G6R5_UNORM:
728+
case DXGI_FORMAT_B5G5R5A1_UNORM:
729+
return 16;
720730
case DXGI_FORMAT_R8_TYPELESS:
721731
case DXGI_FORMAT_R8_UNORM:
722732
case DXGI_FORMAT_R8_UINT:

0 commit comments

Comments
 (0)