MayaFlux 1.0.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.

Reimplemented in MayaFlux::Buffers::VideoContainerBuffer.

Definition at line 50 of file TextureBuffer.cpp.

51{
52 auto self = std::dynamic_pointer_cast<TextureBuffer>(shared_from_this());
53
54 m_texture_processor = std::make_shared<TextureProcessor>();
55 m_texture_processor->set_processing_token(token);
56
58
60 if (!chain) {
61 chain = std::make_shared<BufferProcessingChain>();
63 }
64 chain->set_preferred_token(token);
65
67 "TextureBuffer setup_processors: TextureProcessor will be attached on first registration");
68}
#define MF_DEBUG(comp, ctx,...)
BufferProcessingChain * chain
std::shared_ptr< TextureProcessor > m_texture_processor
std::shared_ptr< Buffers::BufferProcessingChain > get_processing_chain() override
Access the buffer's processing chain.
Definition VKBuffer.cpp:271
void set_default_processor(const std::shared_ptr< BufferProcessor > &processor) override
Set the buffer's default processor.
Definition VKBuffer.cpp:255
void set_processing_chain(const std::shared_ptr< BufferProcessingChain > &chain, bool force=false) override
Replace the buffer's processing chain.
Definition VKBuffer.cpp:276
@ Init
Engine/subsystem initialization.
@ Buffers
Buffers, Managers, processors and processing chains.

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

Referenced by MayaFlux::Buffers::TextureArrayBuffer::setup_processors().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: