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

◆ get_active_graphics_tokens()

std::vector< ProcessingToken > MayaFlux::Buffers::TokenUnitManager::get_active_graphics_tokens ( ) const

Gets all active graphics processing tokens.

Returns
Vector of tokens that have graphics units

Definition at line 174 of file TokenUnitManager.cpp.

175{
176 std::vector<ProcessingToken> tokens;
177 for (const auto& [token, unit] : m_graphics_units) {
178 if (unit.get_buffer() && !unit.get_buffer()->get_child_buffers().empty()) {
179 tokens.push_back(token);
180 }
181 }
182 return tokens;
183}
static MayaFlux::Nodes::ProcessingToken token
Definition Timers.cpp:8
std::unordered_map< ProcessingToken, RootGraphicsUnit > m_graphics_units
Token-based map of root graphics buffer units.

References m_graphics_units, and token.

Referenced by MayaFlux::Buffers::BufferAccessControl::terminate_active_buffers().

+ Here is the caller graph for this function: