Cut workspace panel factory out of windowing

This commit is contained in:
2026-04-28 00:05:10 +08:00
parent 03967b152d
commit 43a71bd09c
11 changed files with 50 additions and 30 deletions

View File

@@ -150,14 +150,17 @@ bool Application::Initialize(HINSTANCE hInstance, int nCmdShow) {
m_editorContext->GetShellAsset().captureRootPath);
m_renderRuntimeFactory =
std::make_unique<Host::D3D12EditorWindowRenderRuntimeFactory>();
App::EditorWorkspaceShellRuntimeFactory workspaceShellRuntimeFactory = []() {
return App::CreateEditorWorkspaceShellRuntime(
App::CreateEditorWorkspacePanelRuntimeSet());
};
m_windowManager = std::make_unique<App::EditorWindowManager>(
*m_editorContext,
*m_windowSystem,
*m_renderRuntimeFactory,
*m_resourceService,
*m_windowHostRuntime,
App::CreateEditorWorkspacePanelRuntimeSet,
App::CreateEditorWorkspaceShellRuntime,
std::move(workspaceShellRuntimeFactory),
App::CreateEditorUtilityWindowPanel);
m_editorContext->SetExitRequestHandler([this]() {