MayaFlux 0.3.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 905 of file RenderFlow.cpp.

906{
907 if (!window) {
909 "Cannot register null window");
910 return;
911 }
912
913 if (!window->is_graphics_registered()) {
915 "Window '{}' not registered with graphics backend yet.",
916 window->get_create_info().title);
917 }
918
919 if (!m_window_associations.contains(window)) {
920 WindowRenderAssociation association;
921 association.window = window;
922 m_window_associations[window] = std::move(association);
923
925 "Registered window '{}' for dynamic rendering",
926 window->get_create_info().title);
927 }
928}
#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: