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

◆ register_window_for_rendering()

void MayaFlux::Portal::Graphics::RenderFlow::register_window_for_rendering ( const std::shared_ptr< Core::Window > &  window)

Register a window for dynamic rendering.

Parameters
windowTarget window for rendering

The window must be registered with GraphicsSubsystem first (i.e., window->is_graphics_registered() must be true).

This associates the window with RenderFlow for tracking. No render pass attachment - dynamic rendering handles this per-frame.

Definition at line 950 of file RenderFlow.cpp.

951{
952 if (!window) {
954 "Cannot register null window");
955 return;
956 }
957
958 if (!window->is_graphics_registered()) {
960 "Window '{}' not registered with graphics backend yet.",
961 window->get_create_info().title);
962 }
963
964 if (!m_window_associations.contains(window)) {
965 WindowRenderAssociation association;
966 association.window = window;
967 m_window_associations[window] = std::move(association);
968
970 "Registered window '{}' for dynamic rendering",
971 window->get_create_info().title);
972 }
973}
#define MF_INFO(comp, ctx,...)
#define MF_ERROR(comp, ctx,...)
#define MF_WARN(comp, ctx,...)
std::weak_ptr< Core::Window > window
Definition Picker.cpp:23
std::unordered_map< std::shared_ptr< Core::Window >, WindowRenderAssociation > m_window_associations
@ Rendering
GPU rendering operations (graphics pipeline, frame rendering)
@ Portal
High-level user-facing API layer.

References m_window_associations, MF_ERROR, MF_INFO, MF_WARN, MayaFlux::Journal::Portal, MayaFlux::Journal::Rendering, window, and MayaFlux::Portal::Graphics::RenderFlow::WindowRenderAssociation::window.

Referenced by MayaFlux::Buffers::RenderProcessor::initialize_pipeline().

+ Here is the caller graph for this function: