mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-05 22:31:08 +00:00
Update RenderDoc application-facing API to a stable/mature version.
* This API is now intended to be forward and backward compatible as much as possible. Meaning applications should be able to run without changing on many RenderDoc versions after the one they are built against without breaking. * All function pointers are fetched at once in one versioned GetAPI() function, to save on constant GetProcAddress/dlsym'ing. * Otherwise, it's largely similar to the previous API.
This commit is contained in:
@@ -249,6 +249,12 @@ static PROCESS_INFORMATION RunProcess(const char *app, const char *workingDir, c
|
||||
return pi;
|
||||
}
|
||||
|
||||
extern "C" __declspec(dllexport)
|
||||
void __cdecl RENDERDOC_GetRemoteAccessIdent(uint32_t *ident)
|
||||
{
|
||||
if(ident) *ident = RenderDoc::Inst().GetRemoteAccessIdent();
|
||||
}
|
||||
|
||||
uint32_t Process::InjectIntoProcess(uint32_t pid, const char *logfile, const CaptureOptions *opts, bool waitForExit)
|
||||
{
|
||||
CaptureOptions options;
|
||||
@@ -410,7 +416,7 @@ uint32_t Process::InjectIntoProcess(uint32_t pid, const char *logfile, const Cap
|
||||
if(opts != NULL)
|
||||
InjectFunctionCall(hProcess, loc, "RENDERDOC_SetCaptureOptions", (CaptureOptions *)opts, sizeof(CaptureOptions));
|
||||
|
||||
InjectFunctionCall(hProcess, loc, "RENDERDOC_InitRemoteAccess", &remoteident, sizeof(remoteident));
|
||||
InjectFunctionCall(hProcess, loc, "RENDERDOC_GetRemoteAccessIdent", &remoteident, sizeof(remoteident));
|
||||
}
|
||||
|
||||
if(waitForExit)
|
||||
|
||||
Reference in New Issue
Block a user