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

◆ detach()

std::shared_ptr< Buffers::VKBuffer > MayaFlux::Portal::Graphics::SlotArena::detach ( )
nodiscard

Hand the buffer to the caller, leaving the arena empty.

For an owner that keeps the buffer alive until its readers finish.

Definition at line 103 of file SlotMachine.cpp.

104{
105 m_uses.clear();
106 return std::exchange(m_buffer, nullptr);
107}
std::vector< std::shared_ptr< std::atomic< uint32_t > > > m_uses
std::shared_ptr< Buffers::VKBuffer > m_buffer

References m_buffer, and m_uses.