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

◆ get_graphics_unit()

const RootGraphicsUnit & MayaFlux::Buffers::TokenUnitManager::get_graphics_unit ( ProcessingToken  token) const

Gets an existing graphics unit without creating if missing.

Parameters
tokenProcessing domain
Returns
Const reference to the graphics unit
Exceptions
std::out_of_rangeif token not found

This is a query-only operation; will not create a unit if missing.

Definition at line 158 of file TokenUnitManager.cpp.

159{
160 auto it = m_graphics_units.find(token);
161 if (it == m_graphics_units.end()) {
162 error<std::out_of_range>(
165 std::source_location::current(),
166 "Graphics unit not found for token {}",
167 static_cast<int>(token));
168 }
169 return it->second;
170}
std::unordered_map< ProcessingToken, RootGraphicsUnit > m_graphics_units
Token-based map of root graphics buffer units.
@ BufferManagement
Buffer Management (Buffers::BufferManager, creating buffers)
@ Core
Core engine, backend, subsystems.

References MayaFlux::Journal::BufferManagement, MayaFlux::Journal::Core, and m_graphics_units.

Referenced by MayaFlux::Buffers::BufferAccessControl::get_graphics_buffers(), MayaFlux::Buffers::BufferAccessControl::get_graphics_buffers_by_usage(), and MayaFlux::Buffers::BufferAccessControl::get_root_graphics_buffer().

+ Here is the caller graph for this function: