mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-07-26 17:31:42 +00:00
Retain initial contents type on softmem flush reset
Otherwise resources are filtered out before writing. Change-Id: I76e096472aa3a8b32b81ccd4612da7330173ed47
This commit is contained in:
committed by
Baldur Karlsson
parent
36e53ae0cd
commit
47ee186e65
@@ -132,7 +132,11 @@ bool WrappedVulkan::Prepare_InitialState(WrappedVkRes *res)
|
||||
|
||||
// record is not needed on vulkan
|
||||
Serialise_InitialState(ser, flushId, NULL, &initData);
|
||||
GetResourceManager()->SetInitialContents(flushId, VkInitialContents());
|
||||
|
||||
// Clear the existing init contents, but retain the type
|
||||
VkInitialContents clearedContents;
|
||||
clearedContents.type = initData.type;
|
||||
GetResourceManager()->SetInitialContents(flushId, clearedContents);
|
||||
}
|
||||
uint64_t end = ser.GetWriter()->GetOffset();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user