mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-11-15 10:20:07 +00:00
Add a forwarding ReplayController wrapper for python that auto invokes
This commit is contained in:
4 files changed
+410
-8
No files matched your search
@@ -292,6 +292,12 @@ void ReplayManager::AsyncInvoke(ReplayManager::ReplayInvokeCallback m)
|
||||
|
||||
void ReplayManager::BlockInvoke(ReplayManager::ReplayInvokeCallback m)
|
||||
{
|
||||
if(IsRunning() && m_Thread->isCurrentThread())
|
||||
{
|
||||
m(m_Renderer);
|
||||
return;
|
||||
}
|
||||
|
||||
InvokeHandle *cmd = new InvokeHandle(m);
|
||||
|
||||
PushInvoke(cmd);
|
||||
|
||||
Reference in new issue
Block a user