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

◆ setup_processors()

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

Setup processors with a processing token.

Parameters
tokenProcessingToken to assign.

For VKBuffer this is a no-op as processors get the token. This is meant for derived classes that need to setup default processors

Reimplemented from MayaFlux::Buffers::VKBuffer.

Definition at line 44 of file TextureBuffer.cpp.

45{
46 auto self = std::dynamic_pointer_cast<TextureBuffer>(shared_from_this());
47
48 m_texture_processor = std::make_shared<TextureProcessor>();
49 m_texture_processor->set_processing_token(token);
50
52
53 auto chain = get_processing_chain();
54 if (!chain) {
55 chain = std::make_shared<BufferProcessingChain>();
57 }
58 chain->set_preferred_token(token);
59
61 "TextureBuffer setup_processors: TextureProcessor will be attached on first registration");
62}
#define MF_DEBUG(comp, ctx,...)
static MayaFlux::Nodes::ProcessingToken token
Definition Timers.cpp:8
std::shared_ptr< TextureProcessor > m_texture_processor
void set_processing_chain(std::shared_ptr< Buffers::BufferProcessingChain > chain, bool force=false) override
Replace the buffer's processing chain.
Definition VKBuffer.cpp:286
void set_default_processor(std::shared_ptr< Buffers::BufferProcessor > processor) override
Set the buffer's default processor.
Definition VKBuffer.cpp:265
std::shared_ptr< Buffers::BufferProcessingChain > get_processing_chain() override
Access the buffer's processing chain.
Definition VKBuffer.cpp:281
@ Init
Engine/subsystem initialization.
@ Buffers
Buffers, Managers, processors and processing chains.

References MayaFlux::Journal::Buffers, MayaFlux::Buffers::VKBuffer::get_processing_chain(), MayaFlux::Journal::Init, m_texture_processor, MF_DEBUG, MayaFlux::Buffers::VKBuffer::set_default_processor(), MayaFlux::Buffers::VKBuffer::set_processing_chain(), and token.

+ Here is the call graph for this function: