mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-07-17 13:07:14 +00:00
Set analytics APIs for remote capture file and replay
The API used was not populated for the case of remote capture and replay.
This commit is contained in:
committed by
Baldur Karlsson
parent
4923aa9d88
commit
e21ddb4877
@@ -63,6 +63,7 @@ enum RemoteServerPacket
|
||||
eRemoteServer_ListDir,
|
||||
eRemoteServer_ExecuteAndInject,
|
||||
eRemoteServer_ShutdownServer,
|
||||
eRemoteServer_GetDriverName,
|
||||
eRemoteServer_GetSectionCount,
|
||||
eRemoteServer_FindSectionByName,
|
||||
eRemoteServer_FindSectionByType,
|
||||
@@ -584,6 +585,17 @@ static void ActiveRemoteClientThread(ClientThread *threadData,
|
||||
SERIALISE_ELEMENT(StackFrames);
|
||||
}
|
||||
}
|
||||
else if(type == eRemoteServer_GetDriverName)
|
||||
{
|
||||
reader.EndChunk();
|
||||
|
||||
std::string driver = rdc ? rdc->GetDriverName() : "";
|
||||
{
|
||||
WRITE_DATA_SCOPE();
|
||||
SCOPED_SERIALISE_CHUNK(eRemoteServer_GetDriverName);
|
||||
SERIALISE_ELEMENT(driver);
|
||||
}
|
||||
}
|
||||
else if(type == eRemoteServer_GetSectionCount)
|
||||
{
|
||||
reader.EndChunk();
|
||||
@@ -1631,6 +1643,36 @@ public:
|
||||
rend->Shutdown();
|
||||
}
|
||||
|
||||
rdcstr DriverName()
|
||||
{
|
||||
if(!Connected())
|
||||
return 0;
|
||||
{
|
||||
WRITE_DATA_SCOPE();
|
||||
SCOPED_SERIALISE_CHUNK(eRemoteServer_GetDriverName);
|
||||
}
|
||||
|
||||
std::string driverName = "";
|
||||
|
||||
{
|
||||
READ_DATA_SCOPE();
|
||||
RemoteServerPacket type = ser.ReadChunk<RemoteServerPacket>();
|
||||
|
||||
if(type == eRemoteServer_GetDriverName)
|
||||
{
|
||||
SERIALISE_ELEMENT(driverName);
|
||||
}
|
||||
else
|
||||
{
|
||||
RDCERR("Unexpected response to GetDriverName");
|
||||
}
|
||||
|
||||
ser.EndChunk();
|
||||
}
|
||||
|
||||
return driverName;
|
||||
}
|
||||
|
||||
int GetSectionCount()
|
||||
{
|
||||
if(!Connected())
|
||||
|
||||
Reference in New Issue
Block a user