Decouple editor render runtime factory

This commit is contained in:
2026-04-26 19:21:38 +08:00
parent caa54b7878
commit fa4fcbe95b
15 changed files with 120 additions and 46 deletions

View File

@@ -4,7 +4,6 @@
#include "Platform/Win32/Chrome/EditorWindowChromeController.h"
#include "Platform/Win32/Windowing/EditorFloatingWindowPlacement.h"
#include "Platform/Win32/Windowing/EditorWindow.h"
#include "Rendering/D3D12/D3D12EditorWindowRenderRuntime.h"
#include "Windowing/Host/EditorWindowHostCoordinator.h"
#include "Windowing/Runtime/EditorWindowRuntimeController.h"
@@ -62,11 +61,6 @@ EditorWindowHostRuntime::EditorWindowHostRuntime(
EditorWindowHostRuntime::~EditorWindowHostRuntime() = default;
std::unique_ptr<Rendering::Host::EditorWindowRenderRuntime>
EditorWindowHostRuntime::CreateWindowRenderRuntime() {
return std::make_unique<Host::D3D12EditorWindowRenderRuntime>();
}
EditorWindow* EditorWindowHostRuntime::CreateHostWindow(
std::unique_ptr<EditorWindowRuntimeController> runtimeController,
const EditorWindowCreateParams& params) {