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

◆ initialize()

bool MayaFlux::Portal::Graphics::RenderFlow::initialize ( )

Definition at line 47 of file RenderFlow.cpp.

48{
49 if (s_initialized) {
51 "RenderFlow already initialized (static flag)");
52 return true;
53 }
54
55 if (m_shader_foundry) {
57 "RenderFlow already initialized");
58 return true;
59 }
60
61 auto* foundry = &ShaderFoundry::instance();
62 if (!foundry->is_initialized()) {
64 "ShaderFoundry must be initialized before RenderFlow");
65 return false;
66 }
67
68 auto* display_service = Registry::BackendRegistry::instance()
69 .get_service<Registry::Service::DisplayService>();
70
71 if (!display_service) {
73 "DisplayService not found in BackendRegistry");
74 return false;
75 }
76
77 m_shader_foundry = foundry;
78 m_display_service = display_service;
79 s_initialized = true;
80
82 "RenderFlow initialized");
83 return true;
84}
#define MF_INFO(comp, ctx,...)
#define MF_ERROR(comp, ctx,...)
#define MF_WARN(comp, ctx,...)
Registry::Service::DisplayService * m_display_service
Interface * get_service()
Query for a backend service.
static BackendRegistry & instance()
Get the global registry instance.
@ Rendering
GPU rendering operations (graphics pipeline, frame rendering)
@ Portal
High-level user-facing API layer.

References MayaFlux::Registry::BackendRegistry::get_service(), MayaFlux::Portal::Graphics::ShaderFoundry::instance(), MayaFlux::Registry::BackendRegistry::instance(), m_display_service, m_shader_foundry, MF_ERROR, MF_INFO, MF_WARN, MayaFlux::Journal::Portal, MayaFlux::Journal::Rendering, and s_initialized.

+ Here is the call graph for this function: