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

◆ initialize_graphics_portal()

void MayaFlux::Core::GraphicsSubsystem::initialize_graphics_portal ( )
private

Initialize Portal::Graphics subsystem.

Sets up all Portal::Graphics managers and resources. Must be called after graphics backend initialization.

Definition at line 73 of file GraphicsSubsystem.cpp.

74{
75 try {
76 if (auto vulkan_backend = dynamic_cast<VulkanBackend*>(m_backend.get())) {
77 Portal::Graphics::initialize(std::shared_ptr<VulkanBackend>(vulkan_backend, [](VulkanBackend*) { }));
78 }
79 } catch (std::exception& e) {
83 std::source_location::current(),
84 "Failed to initialize Portal::Graphics subsystem: {}",
85 e.what());
86 }
87}
std::unique_ptr< IGraphicsBackend > m_backend
@ GraphicsSubsystem
Graphics subsystem operations (Vulkan, rendering pipeline)
void error_rethrow(Component component, Context context, std::source_location location=std::source_location::current(), std::string_view additional_context="")
Catch and log an exception, then rethrow it.
@ Core
Core engine, backend, subsystems.
bool initialize(const std::shared_ptr< Core::VulkanBackend > &backend)
Initialize Portal::Graphics Glue Layer.
Definition Graphics.cpp:16

References MayaFlux::Journal::Core, MayaFlux::Journal::GraphicsSubsystem, MayaFlux::Portal::Graphics::initialize(), and m_backend.

Referenced by initialize().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: