Add a helper macro for simple async render thread invokes

This commit is contained in:
baldurk
2016-10-03 13:49:13 +02:00
parent 6d22781610
commit 62e18306de
+4
View File
@@ -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: