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

◆ collect_completed()

void MayaFlux::Portal::Graphics::PrimitiveMill::collect_completed ( )
private

Reclaim every dispatch that has finished, without waiting.

Releases each finished fence and its command buffer. The run and prefix slots a dispatch read are freed when its command buffer completes.

Definition at line 639 of file PrimitiveMill.cpp.

640{
641 auto& foundry = get_shader_foundry();
642
643 size_t done = 0;
644 while (done < m_in_flight.size() && foundry.is_fence_signaled(m_in_flight[done])) {
645 foundry.release_fence(m_in_flight[done]);
646 ++done;
647 }
648 m_in_flight.erase(m_in_flight.begin(), m_in_flight.begin() + static_cast<std::ptrdiff_t>(done));
649}
std::vector< FenceID > m_in_flight
Dispatches submitted and not yet observed complete, oldest first.
MAYAFLUX_API ShaderFoundry & get_shader_foundry()
Get the global shader compiler instance.

References MayaFlux::Portal::Graphics::get_shader_foundry(), and m_in_flight.

Referenced by mill().

Here is the call graph for this function:
Here is the caller graph for this function: