39 KiB
39 KiB
XCUI Phase Status 2026-04-05
Scope
Current execution stays inside the XCUI module and new_editor.
Old editor replacement is explicitly out of scope for this phase.
Latest Checkpoint
- Phase 1 sandbox batch committed and pushed as
67a28bd(Add XCUI new editor sandbox phase 1). - Phase 2 common/runtime batch committed and pushed as
ade5be3(Add XCUI runtime screen layer and demo textarea). - Phase 3 has now produced a stable mixed batch across common/runtime/editor:
- schema document definition data is now retained on
UIDocumentModeland round-trips through the UI artifact path - schema self-definition validation is now stricter around enum/document-only metadata combinations
- engine runtime coverage was tightened again around
UISystemand concrete document-host rendering LayoutLabcontinues as the editor widget proving ground for tree/list/property-section style controls- the demo sandbox and editor bridge APIs were tightened again without touching the old editor replacement scope
new_editornow has an explicit two-step window compositor seam throughIWindowUICompositor/ImGuiWindowUICompositor, layered on top ofIEditorHostCompositor/ImGuiHostCompositor
- schema document definition data is now retained on
- The native-host / hosted-preview publication follow-up is now landed in
new_editor:NativeWindowUICompositoris now buildable alongside the legacy ImGui compositorApplicationnow defaults to a native XCUI host path instead of creating the ImGui shell by default- the native default path now drives
XCUIDemoRuntimeandXCUILayoutLabRuntimedirectly, composes theirUIDrawData, and submits one swapchain packet through the native compositor - the native compositor now publishes hosted-preview textures as SRV-backed
UITextureRegistration/UITextureHandlevalues instead of relying on ImGui-only descriptor semantics - the native shell now begins the hosted-preview queue/registry lifecycle each frame, queues native preview frames, drains them during the native render pass, and consumes published hosted-surface images directly in panel cards with live/warming placeholder states
- the old ImGui shell path remains present as an explicit compatibility host instead of the default host
XCUIInputBridge.hno longer dragsimgui.hthrough the public XCUI input seam
- The default native text path is now also de-ImGuiized inside
new_editor:XCUIStandaloneTextAtlasProvidernow builds and owns its atlas through a Windows/GDI raster path instead of using ImGui font-atlas internals- the standalone atlas provider now exposes both
RGBA32andAlpha8views, supports non-nominal size resolution, lazily adds non-prebaked BMP glyphs, and falls back to?when a glyph cannot be rasterized
- The default native shell path now also has a cleaner translation-unit seam:
- legacy ImGui shell chrome / HUD rendering now lives in a dedicated legacy-only
Applicationtranslation unit instead of keeping directImGui::*calls inside the main native host TU Application.cppno longer directly includes<imgui.h>, even though the compatibility host path is still compiled intonew_editor
- legacy ImGui shell chrome / HUD rendering now lives in a dedicated legacy-only
- The
new_editorbuild now also has an explicit compatibility-source slice:- legacy ImGui shell sources and vendored ImGui backend sources are now grouped into a dedicated compatibility static library instead of being compiled directly as part of the main
XCNewEditorsource list
- legacy ImGui shell sources and vendored ImGui backend sources are now grouped into a dedicated compatibility static library instead of being compiled directly as part of the main
- The main-target header-isolation milestone is now also landed in
new_editor:XCNewEditordrops direct${IMGUI_SOURCE_DIR}/${IMGUI_SOURCE_DIR}/backendsinclude-directory requirements- the generated
XCNewEditor.vcxprojno longer advertisesimgui-srcoreditor/srcon the default include surface - the default native compile path no longer reaches
<imgui.h>througheditor/src/UI/ImGuiBackendBridge.hor equivalent bridge headers XCNewEditorImGuiCompatremains the explicit compatibility-only consumer of legacy ImGui headers and backend sources
- The compositor/font compat boundary is now tighter as well:
IWindowUICompositor.handIEditorHostCompositor.hno longer declareCreateImGui*factories on the generic XCUI seam- ImGui factory entry points now live only in
LegacyImGuiHostInterop.h XCUIEditorFontSetup.hno longer exposesImFont/ImFontAtlas; the public API is now a current-context font bootstrap helperXCUIStandaloneTextAtlasProvider.hno longer depends on the ImGui-oriented font bootstrap header
- The generic shell command/state boundary is now narrower as well:
XCUIShellChromeStateno longer carries the legacy host demo-window toggle or command id on the generic shell-state surfaceApplication.hno longer exposes that legacy demo command through genericShellCommandIds,ShellCommandBindings, orRegisterShellViewCommands(...)- the legacy demo window toggle now lives as a compatibility-only command inside
ApplicationLegacyImGui.cpp
- Old
editorreplacement remains deferred; all active execution still stays inside XCUI shared code andnew_editor.
Three-Layer Status
1. Common Core
UI::DrawData, input event types, focus routing, style/theme resolution are in active use.UIDocumentCompileris buildable again after repairing the duplicated schema helper regression introduced by overlapping schema work.UIDocumentModel/UIDocumentResourcenow retain schema definition metadata explicitly, including memory accounting andUISchemaaccessors..xcschemaround-trip coverage is now present through compile, loader, artifact write, and artifact read paths.- Build-system hardening for MSVC/PDB output paths has started in root CMake,
engine/CMakeLists.txt,new_editor/CMakeLists.txt, andtests/NewEditor/CMakeLists.txt. - Shared engine-side XCUI runtime scaffolding is now present under
engine/include/XCEngine/UI/Runtimeandengine/src/UI/Runtime. - Shared engine-side
UIDocumentScreenHostnow compiles.xcui/.xcthemescreen documents into a runtime-facing document host path instead of leaving all document ownership innew_editor. - Shared text-editing primitives now live under
engine/include/XCEngine/UI/Textandengine/src/UI/Text, so UTF-8 caret movement, line splitting, and multiline navigation are no longer trapped insideXCUI Demo. - Shared text-input controller/state now also lives under
engine/include/XCEngine/UI/Textandengine/src/UI/Text, so character insertion, backspace/delete, submit, and multiline key handling no longer need to be reimplemented per host. - Shared editor collection primitive classification and metric helpers now also live under
engine/include/XCEngine/UI/Widgetsandengine/src/UI/Widgets, covering the currentScrollView/TreeView/ListView/PropertySection/FieldRowprototype taxonomy. - Shared single-selection state now also lives under
engine/include/XCEngine/UI/Widgetsandengine/src/UI/WidgetsasUISelectionModel, so collection-style widget selection no longer has to stay private toLayoutLab. - Shared expansion state now also lives under
engine/include/XCEngine/UI/Widgetsandengine/src/UI/WidgetsasUIExpansionModel, so collapsible tree/property-style widget state no longer has to stay private toLayoutLab. - Shared keyboard-navigation state now also lives under
engine/include/XCEngine/UI/Widgetsandengine/src/UI/WidgetsasUIKeyboardNavigationModel, so list/tree/property-style widgets can share current-index, anchor, and home/end/step navigation rules instead of re-rolling them per sandbox. - Shared property-edit session state now also lives under
engine/include/XCEngine/UI/Widgetsandengine/src/UI/WidgetsasUIPropertyEditModel, so editor-facing field rows can reuse begin/edit/commit/cancel transaction state instead of baking that directly into sandbox runtimes. - Core regression coverage now includes
UIContext, layout, style, runtime screen player/system, and real document-host tests throughcore_ui_tests.
Current gap:
- Minimal schema self-definition support is landed, including consistency checks for enum/document-only schema metadata, but schema-driven validation for
.xcui/.xcthemeinstances is still not implemented. - Shared widget/runtime instantiation is still thin and mostly editor-side.
- Common widget primitives are still incomplete: shared text-input presentation/composition on top of the new text controller, multi-selection/focus-traversal/virtualized collection state on top of the new editor-primitive helpers, shared scroll/navigation-scope/caret-layout helpers, and promotion of the current native text-atlas path into a shared/cross-platform text subsystem.
2. Runtime/Game Layer
- The main concrete progress here is that the retained-mode demo runtime now supports a real
TextFieldinput path with UTF-8 text entry and backspace handling. - The demo runtime has moved past single-line input: multiline
TextAreabehavior is now covered in the sandbox testbed. - Engine-side runtime ownership is no longer zero:
UIScreenPlayer,UIDocumentScreenHost, andUISystemnow define a shared runtime contract for loading a screen document, ticking it with input, and collectingUI::UIDrawData. UISystemnow supports layered screen composition semantics: stacked screen players, top-interactive input routing, and modal layers that block lower screens.UIScreenStackController::ReplaceTopnow preserves the previous top screen if the replacement screen fails to load, so runtime menu flows do not silently drop their active layer on bad assets.SceneRuntimenow owns a dedicatedUISceneRuntimeContext, so game/runtime code has a first-class place to configure viewport/focus, queueUIInputEvents, driveUISystemeachUpdate, and inspect the latest UI frame result.- Runtime screen emission now also carries concrete button text in the shared document host path instead of silently dropping button labels.
UISystemFrameResultnow also preserves viewport rect, submitted input count, frame delta, and focus state, and bothUISystemandUISceneRuntimeContextnow exposeConsumeLastFrame()so runtime/game hosts can drain the last retained frame packet without copying editor-side concepts into the shared layer.UIScreenPlayernow also exposesConsumeLastFrame(), so player/system/context all share the same consume-vs-borrow frame ownership semantics in the runtime layer.
Current gap:
- Runtime UI is now wired into
SceneRuntime, but render submission is still limited to producingUIDrawData; there is no game-view/runtime presenter path that automatically draws those frames yet. - The runtime widget library is still shallow and missing the editor-grade controls that will later be shared downward.
3. Editor Layer
new_editorremains the isolated XCUI sandbox.- Native hosted preview is now working end-to-end as
RHI offscreen surface -> SRV-backed publication -> hosted surface image presentthrough the native shell path. - Hosted preview surface descriptors now stay on XCUI-owned value types (
UITextureHandle,UIPoint,UIRect) instead of exposing ImGui texture/UV types through the generic preview contract. - Shared
UI::UIDrawDataimage commands now carry explicituvMin/uvMaxsource-rect semantics, and the native panel canvas host preserves those UVs when it records hosted surface-image preview commands. XCUI Demoremains the long-lived effect and behavior testbed.XCUI Demonow covers both single-line and multiline text authoring behavior, including click caret placement, delete/backspace, tab indentation, and optional text-area line numbers.XCUI Demonow consumes the sharedUITextInputControllerpath for text editing instead of carrying a private key-handling state machine.LayoutLabnow includes aScrollViewprototype and a more editor-like three-column authored layout.LayoutLabnow also covers editor-facing widget prototypes:TreeView,TreeItem,ListView,ListItem,PropertySection, andFieldRow.LayoutLabnow consumes the sharedUIEditorCollectionPrimitiveshelper layer for collection-widget tag classification, clipping flags, and default metric resolution instead of keeping that taxonomy private to the sandbox runtime.LayoutLabnow also consumes the sharedUISelectionModelfor click-selection persistence across collection-style widgets, and the diagnostics panel now exposes both hovered and selected element ids.LayoutLabnow also consumes the sharedUIExpansionModelfor tree expansion and property-section collapse, with reserved property headers, disclosure glyphs, and persisted click-toggle behavior in the sandbox runtime.new_editornow also has an isolatedXCUIEditorCommandRoutermodel with shortcut matching, enable predicates, and direct command invocation semantics covered by dedicated tests, ready for shell-frame integration.XCUI Demonow exports pending per-frame command ids throughDrainPendingCommandIds(), so editor-side hosts have a clean seam for observing demo/runtime command traffic without parsing draw data.XCUI DemoandLayoutLabpanel canvases are now being pulled behind a dedicatedIXCUIPanelCanvasHostseam, so canvas surface presentation, hover/focus fallback state, and overlay draw hooks no longer have to stay hard-coded inside each ImGui panel implementation.- The panel-canvas seam now also exposes explicit backend/capability metadata and a minimal
NullXCUIPanelCanvasHost, so non-ImGui host paths have a concrete placeholder backend instead of relying on an implicit ImGui default. XCUI DemoandLayoutLabpanel input now also flows through an explicitIXCUIInputSnapshotSourceseam, so panel/runtime code no longer readsImGuiIO/ImGui::IsKeyPressed/ImGui::IsMouseClickeddirectly when the shell wants to use an ImGui adapter.new_editornow also has an explicitImGuiXCUIInputSnapshotSourceadapter, keeping ImGui-specific input capture in the host adapter layer instead of inside panel/runtime update code.- Panel diagnostics were expanded to clearly separate preview/runtime/input state and native vs legacy paths.
- The editor bridge layer now has smoke coverage for swapchain after-UI rendering hooks and SRV-backed ImGui texture descriptor registration.
Applicationno longer owns the ImGui backend directly; window presentation now routes throughIWindowUICompositorwith anImGuiWindowUICompositorimplementation, which currently delegates toIEditorHostCompositor/ImGuiHostCompositor.- Hosted preview offscreen surfaces now keep compositor-returned
UITextureRegistration/UITextureHandledata insideApplicationinstead of storingImTextureIDdirectly. - The generic hosted-preview presenter contract no longer owns
ImGuiTransitionBackend; the ImGui presenter now sits in a separateImGuiXCUIHostedPreviewPresenterheader while the native queue/surface registry remains XCUI-generic. - The generic hosted-preview frame contract no longer carries an ImGui draw-list pointer; the legacy ImGui presenter resolves its inline draw target from the active ImGui window context instead of pushing that type through the XCUI contract.
- The legacy ImGui hosted-preview presenter now also accepts an explicit draw-target binding object, so presenter-side
ImGui::GetWindowDrawList()lookup is no longer hard-coded inside the generic presenter path and can stay isolated behind the ImGui adapter layer. Applicationshell menu toggles and global shortcuts now route throughXCUIEditorCommandRouterinstead of directly mutating shell booleans from menu callbacks, giving the editor layer a real command-routing seam.LayoutLabruntime now consumes the sharedUIKeyboardNavigationModelfor abstract list/tree/property navigation actions (previous/next/home/end/collapse/expand), so keyboard collection traversal rules are no longer trapped in sandbox-local state.LayoutLabpanel input now also maps concrete arrow/home/end keys into those shared navigation actions, so keyboard traversal is reachable from the sandbox UI instead of staying runtime-only.XCUIDemoRuntimenow bridges pointer activation, text-edit commands, and shortcut-triggered commands through a unified command path, andDrainPendingCommandIds()now preserves mixed pointer/text/shortcut ordering.new_editornow also has a pureXCUIShellChromeStatemodel covering panel visibility, hosted-preview mode, and shell-level view toggles without depending on ImGui,Application, or the old editor.XCUIShellChromeStatehosted-preview mode naming is now backend-neutral (HostedPresenter/NativeOffscreen) instead of encodingImGuiinto the XCUI shell model.- The shell chrome view-toggle model no longer carries the legacy host demo window at all on the generic XCUI seam; that command now lives only inside the compatibility-only legacy host implementation.
new_editornow also has a concreteNativeWindowUICompositorpath and native-focused compositor tests, so the window compositor seam is no longer ImGui-only.Applicationnow also has a native XCUI shell path that:- becomes the default
new_editorstartup path - lays out
XCUI DemoandLayout Labas native cards directly in the swapchain window - routes shell shortcuts through the same command router without reading ImGui capture state in the default host path
- drives both sandbox runtimes directly from Win32/XCUI input snapshots instead of routing through ImGui panel hosts
- composes one native
UIDrawDatapacket and submits it throughNativeWindowUICompositor
- becomes the default
- The native shell layout policy now also lives behind
XCUINativeShellLayout, so top-bar/footer/workspace geometry, panel split rules, and active-panel transfer on pointer press are no longer hard-coded inline insideApplication.cpp. NativeXCUIPanelCanvasHostnow backs that direct shell path as an externally driven canvas/session host for native cards instead of assuming an ImGui child-window model, and it now emits nativeImagedraw commands for hosted surface-image previews while preserving per-surface UVs.NativeWindowUICompositornow creates and frees SRV-backed texture registrations for hosted preview surfaces, so native publication no longer depends on ImGui descriptor handles.Applicationnow runs the hosted-preview lifecycle in both legacy and native frame paths, treats published textures as XCUI-ownedUITextureHandlestate, queues native preview frames fromBuildNativeShellDrawData(...), and drains them during native rendering before shell chrome overlays.XCUIInputBridge.hno longer includesimgui.h, so the public XCUI input bridge seam is now host-neutral at the header boundary.XCNewEditorbuilds successfully tobuild/new_editor/bin/Debug/XCNewEditor.exe.
Current gap:
- The default shell host is now native, and the legacy ImGui shell/panel path has been split out of the default executable into the standalone
XCNewEditorImGuiCompatcompatibility slice. - The default native shell path is now split away from direct
ImGui::*calls at the main-target header/include level and no longer links the compatibility slice by default. - The default native shell now also consumes shared
XCUINativeShellLayoutandUIEditorPanelChromehelpers for panel split/chrome policy instead of duplicating that card layout logic entirely insideApplication.cpp. - The native shell currently proves direct runtime composition, but its shell chrome is still a bespoke
Application-side layout rather than a fully shared XCUI-authored editor shell document. - Editor-specialized widgets are still incomplete at the shared-module level: the authored prototypes exist, but virtualization, multi-selection/focus traversal, toolbar/menu chrome, menu interaction widgets, and icon-atlas widgets are not yet extracted into reusable XCUI modules.
- The default native text path now uses a standalone Windows/GDI atlas through
XCUIStandaloneTextAtlasProvider, but that provider still lives insidenew_editorand is not yet promoted into a shared/cross-platform text subsystem.
Validated This Phase
new_editor_xcui_demo_panel_tests:3/3new_editor_xcui_demo_runtime_tests:12/12new_editor_xcui_input_bridge_tests:4/4new_editor_imgui_xcui_input_adapter_tests:2/2new_editor_xcui_layout_lab_runtime_tests:12/12new_editor_xcui_rhi_command_compiler_tests:7/7new_editor_xcui_rhi_render_backend_tests:5/5new_editor_xcui_standalone_text_atlas_provider_tests:6/6new_editor_xcui_hosted_preview_presenter_tests:20/20new_editor_legacy_imgui_host_interop_tests:4/4new_editor_imgui_window_ui_compositor_tests:7/7new_editor_native_window_ui_compositor_tests:8/8new_editor_xcui_editor_command_router_tests:5/5new_editor_application_shell_command_bindings_tests:11/11new_editor_xcui_shell_chrome_state_tests:11/11new_editor_xcui_panel_canvas_host_tests:4/4new_editor_imgui_xcui_panel_canvas_host_tests:1/1new_editor_native_xcui_panel_canvas_host_tests:4/4new_editor_xcui_layout_lab_panel_tests:3/3XCNewEditorDebug target builds successfullyXCNewEditor.exenative-default smoke run stayed alive for5score_ui_tests:52 total(50passed,2skipped becauseKeyCode::Deletecurrently aliasesBackspace)scene_tests:68/68core_ui_style_tests:5/5ui_resource_tests:11/11editor_teststargeted bridge smoke:3/3
Landed This Phase
- Demo runtime
TextFieldwith UTF-8 text insertion, caret state, and backspace. - Demo runtime multiline
TextAreapath in the sandbox and test coverage for caret movement / multiline input. - Common-core
UITextEditingextraction now owns UTF-8 offset stepping, codepoint counting, line splitting, and vertical caret motion with dedicatedcore_ui_testscoverage. - Common-core
UITextInputControllerextraction now owns per-field text state, character insertion, enter-submit, and multiline keyboard editing behavior with dedicatedcore_ui_testscoverage. - Common-core
UIEditorCollectionPrimitivesextraction now owns the editor collection tag taxonomy and default metric resolution used by currentLayoutLabwidget prototypes, with dedicatedcore_ui_testscoverage. - Common-core
UISelectionModelextraction now owns reusable single-selection state for collection-style widgets, with dedicatedcore_ui_testscoverage. - Common-core
UIExpansionModelextraction now owns reusable expansion/collapse state for tree/property-style widgets, with dedicatedcore_ui_testscoverage. - Common-core
UIKeyboardNavigationModelextraction now owns reusable current-index/anchor navigation state for collection-style widgets, with dedicatedcore_ui_testscoverage. - Common-core
UIPropertyEditModelextraction now owns reusable property-field edit session state, including staged values and commit/cancel behavior, with dedicatedcore_ui_testscoverage. - Runtime frame ownership was tightened again:
UIScreenPlayer::ConsumeLastFrame()now exposes consume-style packet ownership at the player layerUISystemFrameResultnow carries viewport rect, submitted input event count, frame delta, and focus stateUISystem::ConsumeLastFrame()moves the retained packet out of the runtime layerUISceneRuntimeContext::ConsumeLastFrame()forwards the same shared runtime seam upward
- Demo runtime text editing was extended with:
- click-to-place caret
DeletesupportTab/Shift+Tabindentation for text areas- optional text-area line-number gutter rendering
- Demo authored resources updated to exercise the input field.
- LayoutLab
ScrollViewprototype with clipping and hover rejection outside clipped content. - LayoutLab editor-widget prototypes for tree/list/property-style sections with dedicated runtime coverage.
- LayoutLab click-selection now persists through the shared
UISelectionModel, including selected-state diagnostics and reusable visual selection feedback on cards, collection rows, and field rows. - LayoutLab tree expansion and property-section collapse now persist through the shared
UIExpansionModel, including reserved property headers, disclosure glyphs, and runtime coverage for collapsed/expanded visibility. XCUIDemoRuntimenow exposesDrainPendingCommandIds()so hosts can observe emitted runtime commands in order across pointer/text interactions without scraping UI text or draw-command payloads.XCUIDemoRuntimecommand recording was tightened so pointer activation, text editing, and shortcut-triggered commands now share one bridge path and preserve mixed ordering inDrainPendingCommandIds().- Schema document support extended with:
- retained
UISchemaDefinitiondata onUIDocumentModel - artifact schema version bump for UI documents
- loader/resource accessors and memory accounting
- schema compile/load/artifact regression coverage
- schema consistency rules for:
allowedValuesonly onenumdocumentKind/restrictDocumentKindonly ondocument- explicit
documentKindrequired whenrestrictDocumentKind=true
- retained
- Engine runtime layer added:
UIScreenPlayerUIDocumentScreenHostUISceneRuntimeContextUIScreenStackControllerUISystem- layered screen composition and modal blocking semantics
- Runtime/game integration scaffolding now includes reusable
HUD/menu/modalstack helpers on top ofUISystem. UIScreenStackControllerreplacement now rolls back safely on failure instead of popping the active top layer first.SceneRuntimenow exposes XCUI runtime ownership directly:GetUISystem()GetUIScreenStackController()GetLastUIFrame()SetUIViewportRect(...)SetUIFocused(...)QueueUIInputEvent(...)ClearQueuedUIInputEvents()- automatic
UISystemticking duringSceneRuntime::Update(...)
- Runtime document-host draw emission now preserves button labels for shared screen rendering.
- RHI image path improvements:
- clipped image UV adjustment
- mirrored image UV preservation
- explicit image UV/source-rect submission through
UI::UIDrawData - external texture binding reuse
- per-batch scissor application
- Editor bridge helpers now expose:
- an
afterUiRenderswapchain callback hook inD3D12WindowRenderer - SRV-view based texture descriptor registration in
ImGuiBackendBridge - smoke tests for window renderer, ImGui backend bridge, and console sink registration
- an
new_editorhost presentation now has a first-class compositor seam:IWindowUICompositorImGuiWindowUICompositorIEditorHostCompositorImGuiHostCompositorApplicationframe/present flow routed through the compositor instead of directm_imguiBackendownership
- The window-level XCUI compositor seam now also has a dedicated regression target around
ImGuiWindowUICompositor, covering initialization, render-frame ordering, Win32 message forwarding, texture registration forwarding, and shutdown safety. - The legacy compatibility seam now also has dedicated regression coverage around
LegacyImGuiHostInterop, covering compat factory wiring, ImGui input-capture forwarding, legacy font bootstrap, and the disabled demo-window path. - The window compositor and hosted-preview seams gained more edge-case coverage around no-UI render passes, compositor re-initialization/rebinding, partial logical-size fallback, and descriptor reuse for repeated queued-frame keys.
new_editornow has a dedicatedXCUIEditorCommandRoutertest target covering command registration, replacement, enable predicates, accelerator matching, and policy gates around focus/keyboard capture/text input.Applicationnow integratesXCUIEditorCommandRouterinto the shell itself:Viewmenu items invoke routed commands instead of directly mutating shell state- shell-level shortcuts now flow from
XCUIWin32InputSourcethroughXCUIInputBridgeinto command matching - hosted-preview mode toggles still trigger presenter reconfiguration through the routed command bindings
new_editorpanel canvas ownership is now being split behindIXCUIPanelCanvasHost, with anImGuiXCUIPanelCanvasHostadapter carrying the legacy path so panel code stops directly owningImGui::Image/ImGui::InvisibleButton/ draw-list preview plumbing.XCUIDemoPanelandXCUILayoutLabPanelno longer create an ImGui hosted-preview presenter or ImGui panel canvas host implicitly; default construction now stays on null/explicitly injected backends until the outer shell binds a concrete host adapter.Applicationnow bindsImGuiXCUIPanelCanvasHostexplicitly at the shell composition root, so the current ImGui panel host path is visible as a host-layer decision instead of a panel-layer fallback.XCUIDemoPanelandXCUILayoutLabPanelno longer read ImGui input directly; both now consume an injectedIXCUIInputSnapshotSource, and the newImGuiXCUIInputSnapshotSourcekeeps the current ImGui-backed input path isolated behind an explicit adapter.new_editornow also has a pureXCUIShellChromeStatemodel with dedicated tests, covering shell panel visibility, hosted-preview mode, and shell view toggles without depending on ImGui orApplication.XCUIShellChromeStatenow also exposes effective hosted-preview state helpers and shell view-toggle command-id helpers, so shell routing code no longer has to manually combine enablement and requested preview mode.XCUIShellChromeStatehosted-preview modes were renamed away fromLegacyImGui, so XCUI shell state no longer treats ImGui as the generic fallback concept.- The panel-canvas seam now has dedicated null/imgui backend coverage, including explicit backend/capability reporting and a non-ImGui placeholder host path for future native shell adoption.
- The native host follow-up is now present in
new_editor:NativeWindowUICompositorprovides a swapchain-native XCUI packet present path beside the legacy ImGui compositorApplicationnow defaults to that native host path and directly composesXCUI DemoplusLayout Labinto one native shell frameNativeXCUIPanelCanvasHostnow drives externally configured native card sessions for that shell path and records hosted surface-image preview commands with preserved UVs- new native compositor/native canvas-host tests now cover the new host seam
XCUIInputBridge.hno longer includesimgui.h, so XCUI input translation is no longer coupled to ImGui at the public header boundary.SceneRuntimelayered XCUI routing now has dedicated regression coverage for:- top-interactive layer input ownership
- blocking/modal layer suppression of lower layers
- hidden top-layer pass-through back to visible underlying layers
- Shared
UITextInputControllercoverage now includes more caret-boundary / modifier branches; the remainingDeletedistinction stays blocked onKeyCode::DeleteandKeyCode::Backspacestill sharing the same enum value. - Window compositor texture registration now also flows back into
Applicationas XCUI-ownedUITextureRegistration/UITextureHandledata instead of exposing rawImTextureIDthere. - Hosted preview contracts were tightened again:
- generic preview surface metadata stays on XCUI-owned value types
ImGuiTransitionBackendmoved behindImGuiXCUIHostedPreviewPresenter- generic preview frame submission no longer carries an ImGui draw-list pointer
- the ImGui presenter now resolves inline draw targets through an explicit ImGui-only binding seam
- panel/runtime callers still preserve the same legacy and native-preview behavior
- Native hosted-preview publication milestone is now wired through the default shell path:
NativeWindowUICompositorpublishes hosted preview textures as SRV-backed XCUI registrations and frees them through the compositor seamApplication::BeginHostedPreviewFrameLifecycle(...)now resets queue/registry state for both legacy and native frame paths- hosted-preview surface readiness now keys on published texture availability instead of ImGui-style descriptor validity
BuildNativeShellDrawData(...)now queues native preview frames forXCUI Demo/LayoutLab, while shell cards consume the previously published hosted-surface image with warming/live placeholder text- native compositor and shell-command tests now cover the new publication / lifecycle guards
LayoutLabnow resolves editor collection widget taxonomy and metrics through sharedUIEditorCollectionPrimitiveshelpers instead of duplicating the same tag and metric rules inside the sandbox runtime.LayoutLabruntime now consumes shared keyboard-navigation semantics for list/tree/property traversal, while the remaining panel-level key mapping is tracked as an editor-host integration gap rather than a runtime gap.LayoutLabpanel now maps concrete arrow/home/end keys into the shared navigation model, with dedicated panel-level coverage proving that the sandbox UI can actually drive the runtime navigation seam end-to-end.new_editorpanel/shell diagnostics improvements for hosted preview state.- XCUI asset document loading changed to prefer direct source compilation before
ResourceManagerfallback for the sandbox path, fixing the LayoutLab crash. UIDocumentCompiler.cpprepaired enough to restore full local builds after the duplicated schema-helper regression.- MSVC debug build hardening was tightened again so large parallel
enginerebuilds stop tripping over compile-PDB contention. XCUIStandaloneTextAtlasProviderno longer uses ImGui font-atlas/internal baking helpers:- atlas ownership now stays inside a standalone provider implementation built on Windows/GDI glyph rasterization
- default editor atlas prewarms the current supported nominal sizes, exposes both
RGBA32andAlpha8atlas views, lazily inserts non-prebaked BMP glyphs, and falls back to?for unrasterizable codepoints - standalone atlas coverage now includes reset/rebuild, non-nominal size resolution, lazy glyph insertion/fallback behavior, and smoke use without any ImGui context
- Legacy shell chrome / HUD rendering is now split out of the main
Application.cpptranslation unit:- the direct
ImGui::*shell rendering path now lives in a dedicated legacy-onlyApplicationimplementation file - the main
Application.cppnative host path no longer directly includes<imgui.h>, reducing default-path compile-time coupling while the remaining main-target header/include cleanup stays open
- the direct
new_editorbuild composition is now split into main/native and compatibility slices:- the main
XCNewEditortarget no longer compiles legacy ImGui shell/panel/backend source files directly - legacy ImGui shell/panel/backend sources plus vendored ImGui sources now build behind a dedicated compatibility static library that the main executable links
- the main target no longer carries ImGui include directories or older editor bridge headers on its direct compile surface; those remain confined to the compatibility slice
- the main
- The default XCUI compile seam is now also cleaner:
- generic compositor headers no longer advertise compat-only
CreateImGui*factories - compat-only host/window compositor factories now live behind
LegacyImGuiHostInterop.* - public font bootstrap headers no longer leak
ImFont/ImFontAtlastypes into generic XCUI consumers
- generic compositor headers no longer advertise compat-only
Phase Risks Still Open
- Schema instance validation is still open beyond
.xcschemaself-definition and artifact round-trip coverage. ScrollViewis still authored/static; no wheel-driven scrolling or virtualization yet.XCNewEditorno longer depends on ImGui at the default-path header/include level and no longer linksXCNewEditorImGuiCompat; the legacy shell/panel path now lives only in the standalone compatibility slice.- Legacy panel implementations such as
XCUIDemoPanel/XCUILayoutLabPanelstill render as ImGui windows inside the compatibility slice, so editor-layer behavior is not yet fully carried by XCUI-native shell composition. - The default native text path now owns its atlas without ImGui, but the provider is still Windows-only and remains trapped inside
new_editorinstead of a shared/cross-platform text layer. - Hosted-preview compatibility presentation still depends on an ImGui-only inline presenter path when not using the queued native surface path.
- Editor widget coverage is still prototype-driven inside
LayoutLab; it has not yet been promoted into a full reusable shared widget/runtime layer with command routing, virtualization, and property-edit transactions.
Execution-Plan Alignment
- Against
XCUI完整架构设计与执行计划.md, currentnew_editorprogress should be treated as an earlyPhase 8foothold rather than fullMilestone Ecompletion:- landed:
NativeWindowUICompositor, native shell packet composition, native hosted-preview publication, XCUI-owned texture registrations, native panel surface-image presentation, standalone native text-atlas ownership insidenew_editor, legacyApplicationTU split,XCNewEditorImGuiCompat, main-target header/include isolation from ImGui, default-executable unlinking from the compatibility slice, compat-only factory/font seam tightening, shared native shell layout helpers, and shared panel-chrome/flat-hierarchy helpers - not yet landed: promotion of the native text-atlas path into a shared/cross-platform text subsystem, shared XCUI-authored editor shell chrome, and retirement of legacy ImGui-window panel implementations
- landed:
- That means the next de-ImGui push should not keep centering on hosted-preview publication; that milestone is now effectively closed for the default native shell path.
- The real remaining default-path blockers are:
- move editor-layer behavior off the legacy ImGui-window panel implementations and into native/XCUI shell composition
- keep compat-only factories/types from drifting back into generic XCUI seams while the compatibility slice remains linked
- harden and promote
XCUIStandaloneTextAtlasProvider/ editor font bootstrap into a shared native text subsystem - move native shell chrome out of bespoke
Applicationlayout code and into a shared XCUI shell model or authored shell document
Next Phase
- Expand runtime/game-layer ownership from the current
SceneRuntimeUI context into scene-declared HUD/menu bootstrapping, draw submission, and higher-level runtime UI policies. - Promote the current editor-facing widget prototypes out of authored
LayoutLabcontent and into reusable XCUI widget/runtime modules, then continue with toolbar/menu chrome, shell-state adoption, virtualization, and broader focus/multi-selection behavior. - Push the remaining de-ImGui cleanup from build/header isolation into behavior isolation: keep ImGui confined to
XCNewEditorImGuiCompat, keep generic XCUI seams free of compat-only factories/types, and keep shrinking the legacy shell boundary. - Promote the current standalone native text/font path out of
new_editor, harden its atlas invalidation/caching contract, and keep the remaining font/bootstrap ownership compatibility-only. - Promote the native shell chrome and card layout out of bespoke
Applicationcode into a shared XCUI/editor-layer shell model or authored shell document, then retire the remaining ImGui-window panel path. - Continue phased validation, commit, push, and plan refresh after each stable batch.