Temporary (non-running) test of invoking via lambdas GUI->Renderer->GUI

* This won't run properly but it's just to test that we can get this
  compiling.
This commit is contained in:
baldurk
2015-04-05 17:34:40 +01:00
parent 1ae7bc73bf
commit 7dcb079389
+14
View File
@@ -1,5 +1,8 @@
#include "EventBrowser.h"
#include "ui_EventBrowser.h"
#include "Code/Core.h"
#include "renderdoc_replay.h"
extern ReplayOutput *out;
@@ -68,6 +71,17 @@ EventBrowser::~EventBrowser()
void EventBrowser::on_find_clicked()
{
Core c;
c.Renderer()->AsyncInvoke([this](IReplayRenderer *r) {
D3D11PipelineState state;
r->GetD3D11PipelineState(&state);
QInvoke::call([this,state]() {
ui->label->setText(state.m_PS.ShaderName.elems);
});
});
}
void EventBrowser::on_gotoEID_clicked()