15 #include <vsg/app/SecondaryCommandGraph.h>
16 #include <vsg/threading/Latch.h>
48 mutable std::mutex _mutex;
51 std::vector<CommandGraphAndBuffer> _commandGraphsAndBuffers;
CommandBuffer encapsulates VkCommandBuffer.
Definition: CommandBuffer.h:27
Encapsulation of vkCmdExecuteCommands with thread safe integration with SecondaryCommandGraph that pr...
Definition: ExecuteCommands.h:23
void completed(const SecondaryCommandGraph &commandGraph, ref_ptr< CommandBuffer > commandBuffer)
called by SecondaryCommandGraph to pass on the completed CommandBuffer that was recorded.
void record(CommandBuffer &commandBuffer) const override
call vkCmdExecuteCommands with all the CommandBuffer that have been recorded with this ExecuteCommand...
void connect(ref_ptr< SecondaryCommandGraph > commandGraph)
connect a SecondaryCommmandGraph that will provide the CommandBuffer each frame
void reset()
clean the internal cache of CommandBuffer and reset the Latch used to signal when all the connected C...
SecondaryCommandGraph is a specialization of CommandGraph that provides Vulkan secondary command buff...
Definition: SecondaryCommandGraph.h:25
Definition: ExecuteCommands.h:43