mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-29 13:20:54 +00:00
Add a helper macro for simple async render thread invokes
This commit is contained in:
@@ -12,6 +12,10 @@
|
||||
struct IReplayRenderer;
|
||||
class LambdaThread;
|
||||
|
||||
// simple helper for the common case of 'we just need to run this on the render thread
|
||||
#define INVOKE_MEMFN(function) \
|
||||
m_Core->Renderer()->AsyncInvoke([this](IReplayRenderer *) { function(); });
|
||||
|
||||
class RenderManager
|
||||
{
|
||||
public:
|
||||
|
||||
Reference in New Issue
Block a user