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

◆ resolve_pending()

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

Wait on and reclaim the previous dispatch, if one is outstanding.

Cheap in steady state: the work was submitted a frame earlier and has normally completed. Releases the fence and its command buffer.

Definition at line 618 of file PrimitiveMill.cpp.

619{
621 return;
622 }
623
624 auto& foundry = get_shader_foundry();
625 foundry.wait_for_fence(m_pending_fence);
626 foundry.release_fence(m_pending_fence);
628}
FenceID m_pending_fence
Outstanding dispatch, resolved at the start of the next mill().
constexpr FenceID INVALID_FENCE
MAYAFLUX_API ShaderFoundry & get_shader_foundry()
Get the global shader compiler instance.

References MayaFlux::Portal::Graphics::get_shader_foundry(), MayaFlux::Portal::Graphics::INVALID_FENCE, and m_pending_fence.

Referenced by mill(), and release().

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