mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-07-08 16:50:44 +00:00
Only get command list IDs when writing
This commit is contained in:
@@ -53,9 +53,13 @@ bool WrappedID3D12CommandQueue::Serialise_ExecuteCommandLists(UINT NumCommandLis
|
||||
SERIALISE_ELEMENT(UINT, num, NumCommandLists);
|
||||
|
||||
std::vector<ResourceId> ids;
|
||||
ids.reserve(num);
|
||||
for(UINT i = 0; i < num; i++)
|
||||
ids.push_back(GetResID(ppCommandLists[i]));
|
||||
|
||||
if(m_State >= WRITING)
|
||||
{
|
||||
ids.reserve(num);
|
||||
for(UINT i = 0; i < num; i++)
|
||||
ids.push_back(GetResID(ppCommandLists[i]));
|
||||
}
|
||||
|
||||
m_pSerialiser->Serialise("ppCommandLists", ids);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user