mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-05 17:40:39 +00:00
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user