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

Method EventSelected

qrenderdoc/Code/RGPInterop.cpp:205–227  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

203}
204
205void RGPInterop::EventSelected(RGPInteropEvent event)
206{
207 uint32_t eventId = m_RGP2Event[event.interoplinearid];
208
209 if(eventId == 0)
210 {
211 qWarning() << "RGP Event " << event.interoplinearid << event.cmdbufid << event.eventname
212 << " did not correspond to a known eventId";
213 return;
214 }
215
216 const ActionDescription *action = m_Ctx.GetAction(eventId);
217
218 const SDFile &file = m_Ctx.GetStructuredFile();
219
220 if(action && QString(file.chunks[action->events.back().chunkIndex]->name) != event.eventname)
221 qWarning() << "Action name mismatch. Expected " << event.eventname << " but got "
222 << QString(file.chunks[action->events.back().chunkIndex]->name);
223
224 m_Ctx.SetEventID({}, eventId, eventId);
225
226 BringToForeground(m_Ctx.GetMainWindow()->Widget());
227}
228
229void RGPInterop::ConnectionEstablished()
230{

Callers

nothing calls this directly

Calls 8

BringToForegroundFunction · 0.85
QStringFunction · 0.50
GetActionMethod · 0.45
GetStructuredFileMethod · 0.45
backMethod · 0.45
SetEventIDMethod · 0.45
WidgetMethod · 0.45
GetMainWindowMethod · 0.45

Tested by

no test coverage detected