mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-29 21:30:53 +00:00
Optionally skip adding event usage (if it will be done post-patching)
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user