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

◆ track_frame_command()

void MayaFlux::Core::GlfwWindow::track_frame_command ( uint64_t  cmd_id)
overridevirtual

Track a secondary command buffer for this frame.

Parameters
cmd_idCommand buffer ID that contains draw commands for this window

Called by RenderProcessor after recording. PresentProcessor queries these to know which secondary buffers to execute.

Implements MayaFlux::Core::Window.

Definition at line 466 of file GlfwWindow.cpp.

467{
468 std::lock_guard lock(m_render_tracking_mutex);
469 m_frame_commands.push_back(cmd_id);
470
472 "Window '{}': tracked command buffer {} (total this frame: {})",
473 m_create_info.title, cmd_id, m_frame_commands.size());
474}
#define MF_RT_TRACE(comp, ctx,...)
WindowCreateInfo m_create_info
std::vector< uint64_t > m_frame_commands
@ GraphicsCallback
Graphics/visual rendering callback - frame-rate real-time.
@ Core
Core engine, backend, subsystems.
std::string title
Window title/identifier.

References MayaFlux::Journal::Core, MayaFlux::Journal::GraphicsCallback, m_create_info, m_frame_commands, m_render_tracking_mutex, MF_RT_TRACE, and MayaFlux::Core::WindowCreateInfo::title.