15 const std::vector<std::shared_ptr<CommandBuffer>>& buffers,
17 if (buffers.empty()) {
18 if (completion_callback) {
21 return fml::Status(fml::StatusCode::kInvalidArgument,
22 "No command buffers provided.");
24 for (
const std::shared_ptr<CommandBuffer>& buffer : buffers) {
25 if (!buffer->SubmitCommands(completion_callback)) {
26 return fml::Status(fml::StatusCode::kCancelled,
27 "Failed to submit command buffer.");
std::function< void(CommandBuffer::Status)> CompletionCallback
virtual fml::Status Submit(const std::vector< std::shared_ptr< CommandBuffer >> &buffers, const CompletionCallback &completion_callback={})
Submit one or more command buffer objects to be encoded and executed on the GPU.