Flutter Engine
The Flutter Engine
|
An interface for submitting command buffers to the GPU for encoding and execution. More...
#include <command_queue.h>
Public Types | |
using | CompletionCallback = std::function< void(CommandBuffer::Status)> |
Public Member Functions | |
CommandQueue () | |
virtual | ~CommandQueue () |
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. More... | |
An interface for submitting command buffers to the GPU for encoding and execution.
Definition at line 17 of file command_queue.h.
Definition at line 19 of file command_queue.h.
|
default |
|
virtualdefault |
|
virtual |
Submit one or more command buffer objects to be encoded and executed on the GPU.
The order of the provided buffers determines the ordering in which they are submitted.
The returned status only indicates if the command buffer was successfully submitted. Successful completion of the command buffer can only be checked in the optional completion callback.
Only the Metal and Vulkan backends can give a status beyond successful encoding. This callback may be called more than once and potentially on a different thread.
Reimplemented in impeller::testing::NoopCommandQueue, and impeller::CommandQueueVK.
Definition at line 14 of file command_queue.cc.