MayaFlux 0.5.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ inspect_buffers()

MAYAFLUX_API void MayaFlux::Portal::Forma::inspect_buffers ( )

Open or show the BufferManager inspection window.

First call creates a dedicated window, builds the InspectResult, and schedules tap_all() via Bridge. Subsequent calls show() the existing window.

Definition at line 174 of file Forma.cpp.

175{
176 if (g_inspect_buffers_window) {
177 g_inspect_buffers_window->show();
178 return;
179 }
180
181 auto& atelier = internal::atelier();
182
183 g_inspect_buffers_window = atelier.create_window(
184 Core::WindowCreateInfo { .title = "BufferManager", .width = k_inspect_w, .height = k_inspect_h });
185
186 auto surface = atelier.create_surface(g_inspect_buffers_window, "BufferManager");
187 LayoutCursor cursor;
188 auto& result = atelier.inspector().buffer_manager(surface, cursor);
189 atelier.bridge().spawn_sync(result.group.header.header_id, [&result] { result.tap_all(); });
190}
void spawn_sync(uint32_t id, std::function< void()> sync_fn)
Spawn a per-frame GraphicsRoutine that calls sync_fn each tick.
Definition Bridge.cpp:368
InspectResult & buffer_manager(Surface &surface, LayoutCursor &cursor, float x_min=-0.95F, float x_max=0.95F, float row_h=0.05F)
Inspect the full BufferManager state across all active tokens.
std::shared_ptr< Core::Window > create_window(const Core::WindowCreateInfo &info)
Create a window through the stored WindowManager and show it.
Definition Atelier.cpp:101
Inspector & inspector()
Inspector instance constructed during initialize.
Definition Atelier.cpp:87
Surface create_surface(std::shared_ptr< Core::Window > window, std::string name)
create_layer plus ownership of the window, as a Surface.
Definition Atelier.cpp:146
Bridge & bridge()
Bridge instance constructed during initialize.
Definition Atelier.cpp:77
std::string title
Window title/identifier.
Configuration for creating a single window instance.

References MayaFlux::Portal::Forma::internal::atelier(), MayaFlux::Portal::Forma::internal::Atelier::bridge(), MayaFlux::Portal::Forma::Inspector::buffer_manager(), MayaFlux::Portal::Forma::internal::Atelier::create_surface(), MayaFlux::Portal::Forma::internal::Atelier::create_window(), MayaFlux::Portal::Forma::internal::Atelier::inspector(), MayaFlux::Portal::Forma::Bridge::spawn_sync(), and MayaFlux::Core::WindowCreateInfo::title.

+ Here is the call graph for this function: