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

◆ setup_rendering()

void MayaFlux::Buffers::NetworkGeometryBuffer::setup_rendering ( const RenderConfig &  config)

Setup rendering with RenderProcessor.

Parameters
configRendering configuration

Registers in the main process phase, after everything setup_processors wired, since the chain runs that phase in insertion order and setup_processors must precede this call for the chain to exist at all. Ordering matters more here than for a plain draw: a triangulating processor mills the vertex buffer into a copy at process time rather than recording a binding read at present time, so every pass that writes those vertices has to come first.

Definition at line 146 of file NetworkGeometryBuffer.cpp.

147{
148 auto resolved_config = resolve_config(config);
149
150 apply_render_config(resolved_config, ShaderConfig { resolved_config.vertex_shader });
151
152 get_processing_chain()->add_processor(m_render_processor, shared_from_this());
153
154 set_default_render_config(resolved_config);
155}
std::shared_ptr< Buffers::BufferProcessingChain > get_processing_chain() override
Access the buffer's processing chain.
Definition VKBuffer.cpp:271
void apply_render_config(const RenderConfig &config, const ShaderConfig &shader_config)
Configure the internal m_render_processor from a RenderConfig.
Definition VKBuffer.cpp:344
std::shared_ptr< RenderProcessor > m_render_processor
Definition VKBuffer.hpp:654
void set_default_render_config(const RenderConfig &config)
Called by derived classes to set their context-specific defaults.
Definition VKBuffer.hpp:631

References MayaFlux::Buffers::VKBuffer::apply_render_config(), MayaFlux::Buffers::VKBuffer::get_processing_chain(), MayaFlux::Buffers::VKBuffer::m_render_processor, and MayaFlux::Buffers::VKBuffer::set_default_render_config().

+ Here is the call graph for this function: