Editor: headless Vulkan graphics + entity/component InspectorView + --headless CLI

Engine (headless construction, no display / no WSI):
- Graphics/Vulkan/Graphics.{h,cpp} + Graphics/Initializer.h: a 'headless' flag
  skips surface/swapchain extension negotiation and the window path so a VkDevice
  can be created with a driver present but no display.
- Scene/Scene.{h,cpp}: null-guards + PScene circular-include decoupling.
- Actor/Entity.{h,cpp}: hasComponent fix (handle-space component query).

Editor:
- Editor/Window/InspectorView.{h,cpp}: Unity-style entity/component inspector on a
  fixed widget pool (no runtime tree mutation) driven by a UIPass in the render
  graph; owns its UI::System via UI::OSystem.
- Editor/ComponentRegistry.{h,cpp}: type-erased component catalog (handle-space only,
  no entt in the editor API) that drives the inspector's component pane.
- Editor/main.cpp: --headless / --dump-entities path (headless device + scene dump,
  no window) and InspectorView wiring with a live PScene on the windowed path.

Compile-verified (-fsyntax-only, -std=c++23) across all touched TUs.
This commit is contained in:
coding-agent authored and Dynamitos committed 2026-11-09 20:07:40 +01:00
1 parent 499407d366
commit c5c66f8cf3
12 files changed
+830 -46

No files matched your search

+5 -1
View File
@@ -20,7 +20,11 @@ struct GraphicsInitializer {
Array<const char*> deviceExtensions;
void* windowHandle;
GraphicsInitializer() : applicationName("SeeleEngine"), engineName("SeeleEngine"), windowLayoutFile(nullptr), windowHandle(nullptr) {}
// When true, the Vulkan device is created in headless mode: no WSI surface
// extensions, no GLFW init, no swapchain device extension, no window.
// Used for machines that have a Vulkan driver but no display.
bool headless;
GraphicsInitializer() : applicationName("SeeleEngine"), engineName("SeeleEngine"), windowLayoutFile(nullptr), windowHandle(nullptr), headless(false) {}
};
struct WindowCreateInfo {
int32 width;