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

◆ execute_fenced

std::function<std::shared_ptr<void>(std::function<void(void*)>)> MayaFlux::Registry::Service::BufferService::execute_fenced

Submit commands with a fence.

Non-blocking.

Parameters
recorderLambda that records commands into command buffer.
Returns
Opaque handle tracking the submission.

Allocates a command buffer and fence, runs the recorder, submits to the graphics queue with the fence attached, and returns immediately. The returned handle owns the cmd buffer + fence lifetime.

Use wait_fenced() to block until the submission completes, then release_fenced() to free the underlying resources.

Unlike execute_immediate, does not drain the graphics queue. Safe to invoke from any thread; blocks only the thread that calls wait_fenced().

Definition at line 127 of file BufferService.hpp.