mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
Make sure to pad allocations to allow for buffers on replay as well
* Capture allocations were already doing this, but we create a whole-mem buffer for replay allocations so we should also pad them up.
This commit is contained in:
@@ -215,9 +215,9 @@ VkResult WrappedVulkan::vkAllocateMemory(VkDevice device, const VkMemoryAllocate
|
||||
{
|
||||
VkMemoryAllocateInfo info = *pAllocateInfo;
|
||||
if(m_State >= WRITING)
|
||||
{
|
||||
info.memoryTypeIndex = GetRecord(device)->memIdxMap[info.memoryTypeIndex];
|
||||
|
||||
{
|
||||
// we need to be able to allocate a buffer that covers the whole memory range. However
|
||||
// if the memory is e.g. 100 bytes (arbitrary example) and buffers have memory requirements
|
||||
// such that it must be bound to a multiple of 128 bytes, then we can't create a buffer
|
||||
|
||||
Reference in New Issue
Block a user