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

◆ record_draw() [1/2]

void MayaFlux::Buffers::RenderProcessor::record_draw ( const std::shared_ptr< VKBuffer > &  buffer)

Record the buffer's prepared geometry into a fresh secondary command buffer.

Does not advance feeds, upload geometry, or dispatch milling. Both normal processing and presentation refreshes use this operation. A buffer that has not prepared geometry yet records nothing.

Definition at line 815 of file RenderProcessor.cpp.

816{
818 || !m_target_window->is_graphics_registered()
820 return;
821
822 const auto it = m_buffer_info.find(buffer);
823 if (it == m_buffer_info.end() || !it->second.geometry_prepared)
824 return;
825 record_draw(buffer, it->second);
826}
std::shared_ptr< NetworkGeometryBuffer > buffer
void record_draw(const std::shared_ptr< VKBuffer > &buffer)
Record the buffer's prepared geometry into a fresh secondary command buffer.
Portal::Graphics::RenderPipelineID m_pipeline_id
std::unordered_map< std::shared_ptr< VKBuffer >, BufferState > m_buffer_info
bool is_visible(const std::shared_ptr< VKBuffer > &buffer) const
Whether this processor contributes to presentation.
std::shared_ptr< Core::Window > m_target_window
constexpr RenderPipelineID INVALID_RENDER_PIPELINE

References buffer, and MayaFlux::Portal::Graphics::INVALID_RENDER_PIPELINE.