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

◆ FormaTarget() [4/4]

MayaFlux::Portal::Forma::FormaTarget::FormaTarget ( std::shared_ptr< Buffers::FormaBuffer >  buffer,
SliceId  slice 
)

One slice of buffer, as returned by FormaBuffer::add_slice.

Definition at line 12 of file Target.cpp.

13{
14 if (buffer) {
15 m_state = std::make_shared<State>(State { .buffer = std::move(buffer), .slice = slice });
16 }
17}
std::shared_ptr< State > m_state
Definition Target.hpp:126
SliceId slice() const noexcept
Slice id, 0 when the handle means the whole buffer.
Definition Target.cpp:46
const std::shared_ptr< Buffers::FormaBuffer > & buffer() const noexcept
The underlying buffer; null for an empty handle.
Definition Target.cpp:40

References buffer(), MayaFlux::Portal::Forma::FormaTarget::State::buffer, m_state, and slice().

+ Here is the call graph for this function: