Optionally skip adding event usage (if it will be done post-patching)

This commit is contained in:
baldurk
2016-10-21 14:15:18 +02:00
parent 9f319e035e
commit 5978305794
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -1017,7 +1017,7 @@ void D3D12CommandData::AddUsage(D3D12DrawcallTreeNode &drawNode)
}
}
void D3D12CommandData::AddDrawcall(const FetchDrawcall &d, bool hasEvents)
void D3D12CommandData::AddDrawcall(const FetchDrawcall &d, bool hasEvents, bool addUsage)
{
m_AddedDrawcall = true;
@@ -1076,7 +1076,7 @@ void D3D12CommandData::AddDrawcall(const FetchDrawcall &d, bool hasEvents)
node.resourceUsage.swap(m_BakedCmdListInfo[m_LastCmdListID].resourceUsage);
if(m_LastCmdListID != ResourceId())
if(m_LastCmdListID != ResourceId() && addUsage)
AddUsage(node);
node.children.insert(node.children.begin(), draw.children.elems,
+1 -1
View File
@@ -310,7 +310,7 @@ struct D3D12CommandData
ID3D12GraphicsCommandList *RerecordCmdList(ResourceId cmdid,
PartialReplayIndex partialType = ePartialNum);
void AddDrawcall(const FetchDrawcall &d, bool hasEvents);
void AddDrawcall(const FetchDrawcall &d, bool hasEvents, bool addUsage = true);
void AddEvent(string description);
void AddUsage(D3D12DrawcallTreeNode &drawNode);
void AddUsage(D3D12DrawcallTreeNode &drawNode, ResourceId id, uint32_t EID, ResourceUsage usage);