mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-13 10:11:02 +00:00
Update image states after frame references to handle postponed resources
* We may fetch initial states for postponed resources when updating references, so don't update image states until after as the fetch is performed *before* the application's commands
This commit is contained in:
@@ -1102,6 +1102,10 @@ void WrappedVulkan::CaptureQueueSubmit(VkQueue queue,
|
||||
{
|
||||
(*it)->AddResourceReferences(GetResourceManager());
|
||||
GetResourceManager()->MergeReferencedMemory((*it)->cmdInfo->memFrameRefs);
|
||||
}
|
||||
|
||||
for(auto it = cmdsWithReferences.begin(); it != cmdsWithReferences.end(); ++it)
|
||||
{
|
||||
UpdateImageStates((*it)->cmdInfo->imageStates);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user