MayaFlux 0.1.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 304 of file GraphicsSubsystem.cpp.

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