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

◆ get_postprocessor()

std::shared_ptr< BufferProcessor > MayaFlux::Buffers::BufferProcessingChain::get_postprocessor ( const std::shared_ptr< Buffer > &  buffer) const

Returns the postprocessor for a buffer, or nullptr if none is set.

Parameters
bufferBuffer to query

Definition at line 287 of file BufferProcessingChain.cpp.

288{
289 auto it = m_postprocessors.find(buffer);
290 return it != m_postprocessors.end() ? it->second : nullptr;
291}
std::shared_ptr< NetworkGeometryBuffer > buffer
std::unordered_map< std::shared_ptr< Buffer >, std::shared_ptr< BufferProcessor > > m_postprocessors
Map of buffers to their postprocessors.

References buffer, and m_postprocessors.