mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-07-31 03:41:01 +00:00
Change by-ref passed float or bool parameters to callbacks in public API
* Mostly used for passing a progress float back during a long blocking call like opening a capture or doing a copy. * This is much more feasible for python to bind to. * In several cases we just use a tiny lambda that updates a float anyway since we can't push the progress directly into a progress dialog, but need to let it query from a temporary in-between float.
This commit is contained in:
@@ -2012,7 +2012,8 @@ void MainWindow::on_action_Resolve_Symbols_triggered()
|
||||
bool finished = false;
|
||||
|
||||
m_Ctx.Replay().AsyncInvoke([this, &progress, &finished](IReplayController *) {
|
||||
bool success = m_Ctx.Replay().GetCaptureAccess()->InitResolver(&progress);
|
||||
bool success =
|
||||
m_Ctx.Replay().GetCaptureAccess()->InitResolver([&progress](float p) { progress = p; });
|
||||
|
||||
if(!success)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user