mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-23 14:15:42 +00:00
Add missing memory dirty to vkBindBufferMemory2
This commit is contained in:
@@ -2642,6 +2642,13 @@ VkResult WrappedVulkan::vkBindBufferMemory2(VkDevice device, uint32_t bindInfoCo
|
||||
GetResID(pBindInfos[i].memory), pBindInfos[i].memoryOffset, bufrecord->memSize,
|
||||
eFrameRef_ReadBeforeWrite);
|
||||
}
|
||||
|
||||
// the memory is immediately dirty because we don't use dirty tracking, it's too expensive to
|
||||
// follow all frame refs in the background and it's pointless because memory almost always
|
||||
// immediately becomes dirty anyway. The one case we might care about non-dirty memory is
|
||||
// memory that has been allocated but not used, but that will be skipped or postponed as
|
||||
// appropriate.
|
||||
GetResourceManager()->MarkDirtyResource(GetResID(pBindInfos[i].memory));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user