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

◆ get_graphics_buffers_by_usage()

std::vector< std::shared_ptr< VKBuffer > > MayaFlux::Buffers::BufferAccessControl::get_graphics_buffers_by_usage ( VKBuffer::Usage  usage,
ProcessingToken  token 
) const

Gets graphics buffers filtered by usage type.

Parameters
usageVKBuffer::Usage type to filter by
tokenProcessing domain
Returns
Vector of buffers matching the specified usage

Definition at line 309 of file BufferAccessControl.cpp.

312{
314 return {};
315 }
316
317 const auto& unit = m_unit_manager.get_graphics_unit(token);
318 return unit.get_buffer()->get_buffers_by_usage(usage);
319}
static MayaFlux::Nodes::ProcessingToken token
Definition Timers.cpp:8
TokenUnitManager & m_unit_manager
Reference to the token/unit manager for storage operations.
const RootGraphicsUnit & get_graphics_unit(ProcessingToken token) const
Gets an existing graphics unit without creating if missing.
bool has_graphics_unit(ProcessingToken token) const
Checks if a graphics unit exists for the given token.
std::shared_ptr< RootGraphicsBuffer > get_buffer() const

References MayaFlux::Buffers::RootGraphicsUnit::get_buffer(), MayaFlux::Buffers::TokenUnitManager::get_graphics_unit(), MayaFlux::Buffers::TokenUnitManager::has_graphics_unit(), m_unit_manager, and token.

+ Here is the call graph for this function: