mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-11-07 22:43:49 +00:00
Add a helper macro for simple async render thread invokes
This commit is contained in:
1 parent
6d22781610
commit
62e18306de
1 file changed
+4
@@ -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