MayaFlux 0.4.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 945 of file RenderFlow.cpp.

946{
947 if (!window) {
949 "Cannot register null window");
950 return;
951 }
952
953 if (!window->is_graphics_registered()) {
955 "Window '{}' not registered with graphics backend yet.",
956 window->get_create_info().title);
957 }
958
959 if (!m_window_associations.contains(window)) {
960 WindowRenderAssociation association;
961 association.window = window;
962 m_window_associations[window] = std::move(association);
963
965 "Registered window '{}' for dynamic rendering",
966 window->get_create_info().title);
967 }
968}
#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: