mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-20 20:55:42 +00:00
Add a forwarding ReplayController wrapper for python that auto invokes
This commit is contained in:
@@ -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