async for SetVariable

This commit is contained in:
Tian Liao 2024-04-04 00:41:18 +08:00
commit 4a9723feaf

View file

@ -543,7 +543,7 @@ namespace GraphControl
if (m_graph != nullptr && m_renderMain != nullptr) if (m_graph != nullptr && m_renderMain != nullptr)
{ {
m_graph->SetArgValue(variableName->Data(), newValue); m_graph->SetArgValue(variableName->Data(), newValue);
m_renderMain->RunRenderPass(); [](RenderMain ^ renderMain) -> winrt::fire_and_forget { co_await renderMain->RunRenderPassAsync(); }(m_renderMain);
} }
} }