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:
1 parent
499407d366
commit
c5c66f8cf3
12 files changed
+830
-46
No files matched your search
@@ -172,6 +172,13 @@ class Graphics : public Gfx::Graphics {
|
||||
void pickPhysicalDevice();
|
||||
void createDevice(GraphicsInitializer initInfo);
|
||||
|
||||
// When true, the device is built without any WSI surface support: no GLFW
|
||||
// init, no VK_KHR_surface / WSI instance extensions, no swapchain device
|
||||
// extension, and no window. Everything else (instance, queues, descriptor /
|
||||
// pipeline layouts, device-local resources) is fully functional. This lets the
|
||||
// engine run on headless machines that have a Vulkan driver but no display.
|
||||
bool headless;
|
||||
|
||||
VkInstance instance;
|
||||
VkDevice handle;
|
||||
VkPhysicalDevice physicalDevice;
|
||||
|
||||
Reference in new issue
Block a user