15 const std::vector<std::shared_ptr<CommandBuffer>>& buffers,
17 bool block_on_schedule) {
18 if (buffers.empty()) {
19 if (completion_callback) {
22 return fml::Status(fml::StatusCode::kInvalidArgument,
23 "No command buffers provided.");
25 for (
const std::shared_ptr<CommandBuffer>& buffer : buffers) {
26 if (!buffer->SubmitCommands(block_on_schedule, completion_callback)) {
27 return fml::Status(fml::StatusCode::kCancelled,
28 "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={}, bool block_on_schedule=false)
Submit one or more command buffer objects to be encoded and executed on the GPU.