MCPcopy Create free account
hub / github.com/baldurk/renderdoc / HighlightResourceUsage

Method HighlightResourceUsage

qrenderdoc/Windows/TimelineBar.cpp:136–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134}
135
136void TimelineBar::HighlightResourceUsage(ResourceId id)
137{
138 m_ID = id;
139 m_UsageEvents.clear();
140 m_UsageTarget = m_Ctx.GetResourceName(id);
141
142 m_Ctx.Replay().AsyncInvoke([this, id](IReplayController *r) {
143 rdcarray<EventUsage> usage = r->GetUsage(id);
144
145 GUIInvoke::call(this, [this, usage]() {
146 for(const EventUsage &u : usage)
147 m_UsageEvents << u;
148 std::sort(m_UsageEvents.begin(), m_UsageEvents.end());
149 viewport()->update();
150 });
151 });
152
153 viewport()->update();
154}
155
156void TimelineBar::HighlightHistory(ResourceId id, const rdcarray<PixelModification> &history)
157{

Callers 2

HighlightUsageMethod · 0.80
HighlightUsageMethod · 0.80

Calls 8

sortFunction · 0.50
clearMethod · 0.45
GetResourceNameMethod · 0.45
AsyncInvokeMethod · 0.45
GetUsageMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
updateMethod · 0.45

Tested by 1

HighlightUsageMethod · 0.64