Flutter Engine
The Flutter Engine
Public Member Functions | Friends | List of all members
impeller::CommandBufferVK Class Referencefinal

#include <command_buffer_vk.h>

Inheritance diagram for impeller::CommandBufferVK:
impeller::CommandBuffer impeller::BackendCast< CommandBufferVK, CommandBuffer >

Public Member Functions

 ~CommandBufferVK () override
 
const std::shared_ptr< CommandEncoderVK > & GetEncoder ()
 
- Public Member Functions inherited from impeller::CommandBuffer
virtual ~CommandBuffer ()
 
virtual bool IsValid () const =0
 
virtual void SetLabel (const std::string &label) const =0
 
void WaitUntilScheduled ()
 Force execution of pending GPU commands. More...
 
std::shared_ptr< RenderPassCreateRenderPass (const RenderTarget &render_target)
 Create a render pass to record render commands into. More...
 
std::shared_ptr< BlitPassCreateBlitPass ()
 Create a blit pass to record blit commands into. More...
 
std::shared_ptr< ComputePassCreateComputePass ()
 Create a compute pass to record compute commands into. More...
 

Friends

class ContextVK
 

Additional Inherited Members

- Public Types inherited from impeller::CommandBuffer
enum class  Status { kPending , kError , kCompleted }
 
using CompletionCallback = std::function< void(Status)>
 
- Static Public Member Functions inherited from impeller::BackendCast< CommandBufferVK, CommandBuffer >
static CommandBufferVKCast (CommandBuffer &base)
 
static const CommandBufferVKCast (const CommandBuffer &base)
 
static CommandBufferVKCast (CommandBuffer *base)
 
static const CommandBufferVKCast (const CommandBuffer *base)
 
- Protected Member Functions inherited from impeller::CommandBuffer
 CommandBuffer (std::weak_ptr< const Context > context)
 
virtual std::shared_ptr< RenderPassOnCreateRenderPass (RenderTarget render_target)=0
 
virtual std::shared_ptr< BlitPassOnCreateBlitPass ()=0
 
virtual bool OnSubmitCommands (CompletionCallback callback)=0
 
virtual void OnWaitUntilScheduled ()=0
 
virtual std::shared_ptr< ComputePassOnCreateComputePass ()=0
 
- Protected Attributes inherited from impeller::CommandBuffer
std::weak_ptr< const Contextcontext_
 

Detailed Description

Definition at line 18 of file command_buffer_vk.h.

Constructor & Destructor Documentation

◆ ~CommandBufferVK()

impeller::CommandBufferVK::~CommandBufferVK ( )
overridedefault

Member Function Documentation

◆ GetEncoder()

const std::shared_ptr< CommandEncoderVK > & impeller::CommandBufferVK::GetEncoder ( )

Definition at line 45 of file command_buffer_vk.cc.

45 {
46 if (!encoder_) {
47 encoder_ = encoder_factory_->Create();
48 }
49 return encoder_;
50}

Friends And Related Function Documentation

◆ ContextVK

friend class ContextVK
friend

Definition at line 29 of file command_buffer_vk.h.


The documentation for this class was generated from the following files: