-
Notifications
You must be signed in to change notification settings - Fork 99
Open
Labels
investigatingStill to be determined whether we work on thisStill to be determined whether we work on thisoptimizationImprovement in performance or memory usageImprovement in performance or memory usage
Description
D3D12MemoryAllocator/src/D3D12MemAlloc.cpp
Line 8023 in 7597f71
AlignUp<UINT64>(inOutResourceDesc.Width, D3D12_DEFAULT_RESOURCE_PLACEMENT_ALIGNMENT), // SizeInBytes |
If you are using the same heap for buffers and textures, it would be possible for a "small" texture with 4kb alignment to be placed in that memory space after the buffer, if the size is not aligned up. Is there any other reason you align up the size when you allocate memory for a buffer?
Or is the intention to always use separate heaps for buffers and textures?
Metadata
Metadata
Assignees
Labels
investigatingStill to be determined whether we work on thisStill to be determined whether we work on thisoptimizationImprovement in performance or memory usageImprovement in performance or memory usage