|
// This algorithm is overly conservative. |
As per https://learn.microsoft.com/en-us/windows/win32/api/d3d12/ns-d3d12-d3d12_resource_desc#alignment , the tiling logic specifies constraints similar to the ones implemented in CanUseSmallAlignment. It also says that -
The runtime will use an architecture-independent mechanism of size-estimation, that mimics the way standard swizzle and D3D12 tiled resources are sized.
So why does the documentation mention that this function is overly conservative? Is it because not all pixel formats are specified in GetBitsPerPixel or some other reason is there too?
D3D12MemoryAllocator/src/D3D12MemAlloc.cpp
Line 771 in 0fa62ed
As per https://learn.microsoft.com/en-us/windows/win32/api/d3d12/ns-d3d12-d3d12_resource_desc#alignment , the tiling logic specifies constraints similar to the ones implemented in
CanUseSmallAlignment. It also says that -So why does the documentation mention that this function is overly conservative? Is it because not all pixel formats are specified in
GetBitsPerPixelor some other reason is there too?