Decouple editor windowing from D3D12 runtime

This commit is contained in:
2026-04-26 18:54:43 +08:00
parent 244bdd78c2
commit 60b2949de2
14 changed files with 456 additions and 117 deletions

View File

@@ -59,7 +59,8 @@ EditorHostWindow* EditorWindowManager::CreateWorkspaceWindow(
EditorHostWindow* const window = m_hostRuntime.CreateHostWindow(
std::make_unique<EditorWindowRuntimeController>(
m_editorContext,
m_contentFactory->CreateWorkspaceContentController(windowState)),
m_contentFactory->CreateWorkspaceContentController(windowState),
m_hostRuntime.CreateWindowRenderRuntime()),
params);
if (window != nullptr) {
m_workspaceCoordinator->RegisterExistingWindow(*window);
@@ -77,7 +78,8 @@ EditorHostWindow* EditorWindowManager::CreateUtilityWindow(
EditorHostWindow* const window = m_hostRuntime.CreateHostWindow(
std::make_unique<EditorWindowRuntimeController>(
m_editorContext,
m_contentFactory->CreateUtilityContentController(descriptor)),
m_contentFactory->CreateUtilityContentController(descriptor),
m_hostRuntime.CreateWindowRenderRuntime()),
params);
if (window != nullptr) {
m_workspaceCoordinator->RegisterExistingWindow(*window);