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

◆ register_windows_for_processing()

void MayaFlux::Core::GraphicsSubsystem::register_windows_for_processing ( )

Register markend windows from window manager for swapchain processing.

Creates surfaces and swapchains for each window. Called during initialization and whenever new windows are created.

Definition at line 310 of file GraphicsSubsystem.cpp.

311{
312 for (auto& window : m_handle->windows.get_processing_windows()) {
313
314 if (window->is_graphics_registered()) {
315 continue;
316 }
317
318 if (m_backend->register_window(window)) {
319 m_registered_windows.push_back(window);
320 } else {
322 "Failed to register window '{}' for graphics processing",
323 window->get_create_info().title);
324 continue;
325 }
326 }
327}
#define MF_WARN(comp, ctx,...)
std::vector< std::shared_ptr< Window > > m_registered_windows
SubsystemProcessingHandle * m_handle
Reference to processing handle.
std::unique_ptr< IGraphicsBackend > m_backend
@ GraphicsSubsystem
Graphics subsystem operations (Vulkan, rendering pipeline)
@ Core
Core engine, backend, subsystems.

References MayaFlux::Journal::Core, MayaFlux::Core::WindowManagerHandle::get_processing_windows(), MayaFlux::Journal::GraphicsSubsystem, m_backend, m_handle, m_registered_windows, MF_WARN, and MayaFlux::Core::SubsystemProcessingHandle::windows.

Referenced by process().

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