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

◆ release_after_submit()

void MayaFlux::Portal::Graphics::ShaderFoundry::release_after_submit ( std::function< void()> release)

Run a release action once every submission made so far has completed.

Parameters
releaseAction that frees resources the submitted work may still read

Runs immediately when nothing has been submitted. The action runs from the next command buffer allocation after completion, on the thread that allocates it.

Definition at line 1212 of file ShaderFoundry.cpp.

1213{
1214 auto& cmd_manager = m_backend->get_command_manager();
1215 cmd_manager.retire_resource(std::move(release), cmd_manager.submitted());
1216}
std::shared_ptr< Core::VulkanBackend > m_backend

References m_backend.

Referenced by MayaFlux::Portal::Graphics::PrimitiveMill::ensure_buffers(), and MayaFlux::Yantra::GpuDispatchRecorder::release_after().

Here is the caller graph for this function: