Decouple editor render runtime factory
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user