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

@@ -1,6 +1,7 @@
#include "Rendering/D3D12/D3D12EditorWindowRenderRuntime.h"
#include <algorithm>
#include <memory>
#include <windows.h>
@@ -18,6 +19,11 @@ using Rendering::Host::EditorWindowRenderRuntimeSurface;
D3D12EditorWindowRenderRuntime::~D3D12EditorWindowRenderRuntime() = default;
std::unique_ptr<Rendering::Host::EditorWindowRenderRuntime>
D3D12EditorWindowRenderRuntimeFactory::CreateWindowRenderRuntime() {
return std::make_unique<D3D12EditorWindowRenderRuntime>();
}
bool D3D12EditorWindowRenderRuntime::IsReady() const {
return m_ready;
}