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

@@ -11,6 +11,8 @@
#include "Rendering/D3D12/D3D12WindowRenderer.h"
#include "Rendering/Host/EditorWindowRenderRuntime.h"
#include <memory>
namespace XCEngine::UI::Editor::Host {
class D3D12EditorWindowRenderRuntime final
@@ -53,4 +55,22 @@ private:
bool m_ready = false;
};
class D3D12EditorWindowRenderRuntimeFactory final
: public ::XCEngine::UI::Editor::Rendering::Host::EditorWindowRenderRuntimeFactory {
public:
D3D12EditorWindowRenderRuntimeFactory() = default;
~D3D12EditorWindowRenderRuntimeFactory() override = default;
D3D12EditorWindowRenderRuntimeFactory(
const D3D12EditorWindowRenderRuntimeFactory&) = delete;
D3D12EditorWindowRenderRuntimeFactory& operator=(
const D3D12EditorWindowRenderRuntimeFactory&) = delete;
D3D12EditorWindowRenderRuntimeFactory(D3D12EditorWindowRenderRuntimeFactory&&) = delete;
D3D12EditorWindowRenderRuntimeFactory& operator=(
D3D12EditorWindowRenderRuntimeFactory&&) = delete;
std::unique_ptr<Rendering::Host::EditorWindowRenderRuntime>
CreateWindowRenderRuntime() override;
};
} // namespace XCEngine::UI::Editor::Host