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 308 of file GraphicsSubsystem.cpp.

309{
310 for (auto& window : m_handle->windows.get_processing_windows()) {
311
312 if (window->is_graphics_registered()) {
313 continue;
314 }
315
316 if (m_backend->register_window(window)) {
317 m_registered_windows.push_back(window);
318 } else {
320 "Failed to register window '{}' for graphics processing",
321 window->get_create_info().title);
322 continue;
323 }
324 }
325}
#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: