refactor(editor): neutralize render surface handoff
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#include "Rendering/Host/EditorWindowRenderRuntime.h"
|
||||
#include "Windowing/EditorWindowShared.h"
|
||||
#include "Windowing/Frame/EditorWindowTransferRequests.h"
|
||||
#include "Windowing/Host/EditorWindowHostTypes.h"
|
||||
@@ -29,10 +30,6 @@ namespace XCEngine::UI::Editor {
|
||||
|
||||
struct UIEditorDockHostTabDropTarget;
|
||||
|
||||
namespace Rendering::Host {
|
||||
class EditorWindowRenderRuntimeSurface;
|
||||
}
|
||||
|
||||
} // namespace XCEngine::UI::Editor
|
||||
|
||||
namespace XCEngine::UI::Editor::App {
|
||||
@@ -49,13 +46,13 @@ struct EditorHostWindowRuntimeInitializationParams {
|
||||
};
|
||||
|
||||
struct EditorNativeWindowRuntimeSurface {
|
||||
std::shared_ptr<const Rendering::Host::EditorWindowRenderRuntimeSurface> renderSurface = {};
|
||||
Rendering::Host::EditorWindowRenderRuntimeSurface renderSurface = {};
|
||||
std::uint32_t widthPixels = 0u;
|
||||
std::uint32_t heightPixels = 0u;
|
||||
float dpiScale = 1.0f;
|
||||
|
||||
bool IsValid() const {
|
||||
return renderSurface != nullptr && widthPixels > 0u && heightPixels > 0u;
|
||||
return renderSurface.IsValid() && widthPixels > 0u && heightPixels > 0u;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user