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

◆ setup_processors()

void MayaFlux::Buffers::RaymarchBuffer::setup_processors ( ProcessingToken  token)
overridevirtual

Attach MeshProcessor for upload and RaymarchProcessor for staging.

Parameters
tokenProcessing domain, normally GRAPHICS_BACKEND.

Reimplemented from MayaFlux::Buffers::MeshBuffer.

Definition at line 23 of file RaymarchBuffer.cpp.

24{
26
27 m_march_processor = std::make_shared<RaymarchProcessor>(
29 m_march_processor->set_processing_token(token);
30
31 get_processing_chain()->add_processor(m_march_processor, shared_from_this());
32
34 "RaymarchBuffer: proxy box over {}x{}x{} lattice",
36}
#define MF_DEBUG(comp, ctx,...)
void setup_processors(ProcessingToken token) override
Create and attach MeshProcessor as the default processor.
std::shared_ptr< RaymarchProcessor > m_march_processor
RaymarchProcessor::FieldSource m_source
std::shared_ptr< Buffers::BufferProcessingChain > get_processing_chain() override
Access the buffer's processing chain.
Definition VKBuffer.cpp:263
@ Init
Engine/subsystem initialization.
@ Buffers
Buffers, Managers, processors and processing chains.
glm::uvec3 resolution
Cell count per axis. Zero on any axis is invalid.
Definition Lattice.hpp:26

References MayaFlux::Journal::Buffers, MayaFlux::Buffers::VKBuffer::get_processing_chain(), MayaFlux::Journal::Init, m_field_bytes, m_lattice, m_march_processor, m_source, MF_DEBUG, MayaFlux::Kinesis::Lattice3D::resolution, and MayaFlux::Buffers::MeshBuffer::setup_processors().

+ Here is the call graph for this function: