Skip to content
Snippets Groups Projects

Resolve "Command Submit Interface"

Merged Ghost User requested to merge 39-command-submit-interface into develop
Files
2
+ 13
4
@@ -29,6 +29,9 @@ namespace vkcv
std::vector<vk::Semaphore> waitSemaphores;
std::vector<vk::Semaphore> signalSemaphores;
};
typedef std::function<void(const vk::CommandBuffer& cmdBuffer)> RecordCommandFunction;
typedef std::function<void(void)> FinishCommandFunction;
class Core final
{
@@ -179,9 +182,15 @@ namespace vkcv
vk::Format getSwapchainImageFormat();
void submitCommands(
const SubmitInfo &submitInfo,
const std::function<void(vk::CommandBuffer cmdBuffer)> recording,
const std::function<void()> finishCallback);
/**
* Submit a command buffer to any queue of selected type. The recording can be customized by a
* custom record-command-function. If the command submission has finished, an optional finish-function
* will be called.
*
* @param submitInfo Submit information
* @param record Record-command-function
* @param finish Finish-command-function or nullptr
*/
void submitCommands(const SubmitInfo &submitInfo, const RecordCommandFunction& record, const FinishCommandFunction& finish);
};
}
Loading