MayaFlux 0.2.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 821 of file RenderFlow.cpp.

822{
823 if (!window) {
825 "Cannot register null window");
826 return;
827 }
828
829 if (!window->is_graphics_registered()) {
831 "Window '{}' not registered with graphics backend yet.",
832 window->get_create_info().title);
833 }
834
835 if (!m_window_associations.contains(window)) {
836 WindowRenderAssociation association;
837 association.window = window;
838 m_window_associations[window] = std::move(association);
839
841 "Registered window '{}' for dynamic rendering",
842 window->get_create_info().title);
843 }
844}
#define MF_INFO(comp, ctx,...)
#define MF_ERROR(comp, ctx,...)
#define MF_WARN(comp, ctx,...)
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, and MayaFlux::Portal::Graphics::RenderFlow::WindowRenderAssociation::window.

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

+ Here is the caller graph for this function: