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

◆ setup_rendering()

void MayaFlux::Buffers::RelaxationGridBuffer::setup_rendering ( const RenderConfig config)

Attach a RenderProcessor drawing the emitted vertex output as ordinary untextured point geometry.

Parameters
configRender target; vertex/fragment shaders default to the standard untextured pair unless overridden. Topology is always forced to POINT_LIST regardless of what is supplied in config.

Definition at line 102 of file RelaxationGridBuffer.cpp.

103{
104 RenderConfig resolved = config;
106
107 if (resolved.vertex_shader.empty())
108 resolved.vertex_shader = "point.vert.spv";
109 if (resolved.fragment_shader.empty())
110 resolved.fragment_shader = "point.frag.spv";
111
112 ShaderConfig sc { resolved.vertex_shader };
113 apply_render_config(resolved, sc);
114
115 get_processing_chain()->add_final_processor(m_render_processor, shared_from_this());
116
118 "RelaxationGridBuffer: rendering configured");
119}
#define MF_INFO(comp, ctx,...)
std::shared_ptr< Buffers::BufferProcessingChain > get_processing_chain() override
Access the buffer's processing chain.
Definition VKBuffer.cpp:263
Portal::Graphics::RenderConfig RenderConfig
Definition VKBuffer.hpp:78
void apply_render_config(const RenderConfig &config, const ShaderConfig &shader_config)
Configure the internal m_render_processor from a RenderConfig.
Definition VKBuffer.cpp:336
std::shared_ptr< RenderProcessor > m_render_processor
Definition VKBuffer.hpp:620
@ Init
Engine/subsystem initialization.
@ Buffers
Buffers, Managers, processors and processing chains.

References MayaFlux::Buffers::VKBuffer::apply_render_config(), MayaFlux::Journal::Buffers, MayaFlux::Portal::Graphics::RenderConfig::fragment_shader, MayaFlux::Buffers::VKBuffer::get_processing_chain(), MayaFlux::Journal::Init, MayaFlux::Buffers::VKBuffer::m_render_processor, MF_INFO, MayaFlux::Portal::Graphics::POINT_LIST, MayaFlux::Portal::Graphics::RenderConfig::topology, and MayaFlux::Portal::Graphics::RenderConfig::vertex_shader.

+ Here is the call graph for this function: