MayaFlux 0.2.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
64 "ShaderFoundry must be initialized before RenderFlow");
65 return false;
66 }
67
69 .get_service<Registry::Service::DisplayService>();
70
71 if (!m_display_service) {
73 "DisplayService not found in BackendRegistry");
74 return false;
75 }
76
77 s_initialized = true;
78
80 "RenderFlow initialized");
81 return true;
82}
#define MF_INFO(comp, ctx,...)
#define MF_ERROR(comp, ctx,...)
#define MF_WARN(comp, ctx,...)
Registry::Service::DisplayService * m_display_service
bool is_initialized() const
Check if compiler is initialized.
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(), MayaFlux::Portal::Graphics::ShaderFoundry::is_initialized(), 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: