Execute viewport offscreen frames through D3D12 host

This commit is contained in:
2026-04-12 23:21:59 +08:00
parent 941034b387
commit dd3731ba66
7 changed files with 69 additions and 6 deletions

View File

@@ -52,12 +52,7 @@ bool RenderD3D12WindowFrame(
renderTargetView,
::XCEngine::RHI::ResourceStates::RenderTarget,
::XCEngine::RHI::ResourceStates::Present);
renderContext.commandList->Close();
void* commandLists[] = { renderContext.commandList };
renderContext.commandQueue->ExecuteCommandLists(1, commandLists);
windowRenderer.GetSwapChain()->Present(1, 0);
return true;
return windowRenderer.SubmitFrame(true);
}
} // namespace XCEngine::UI::Editor::Host