#include <command_buffer_vk.h>
Definition at line 18 of file command_buffer_vk.h.
◆ ~CommandBufferVK()
impeller::CommandBufferVK::~CommandBufferVK |
( |
| ) |
|
|
overridedefault |
◆ 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}
◆ IsValid()
bool impeller::CommandBufferVK::IsValid |
( |
| ) |
const |
|
overrideprivatevirtual |
◆ OnCreateBlitPass()
std::shared_ptr< BlitPass > impeller::CommandBufferVK::OnCreateBlitPass |
( |
| ) |
|
|
overrideprivatevirtual |
Implements impeller::CommandBuffer.
Definition at line 75 of file command_buffer_vk.cc.
75 {
77 return nullptr;
78 }
79 auto pass = std::shared_ptr<BlitPassVK>(new BlitPassVK(weak_from_this()));
80 if (!pass->IsValid()) {
81 return nullptr;
82 }
83 return pass;
84}
bool IsValid() const override
◆ OnCreateComputePass()
std::shared_ptr< ComputePass > impeller::CommandBufferVK::OnCreateComputePass |
( |
| ) |
|
|
overrideprivatevirtual |
Implements impeller::CommandBuffer.
Definition at line 86 of file command_buffer_vk.cc.
86 {
88 return nullptr;
89 }
91 if (!context) {
92 return nullptr;
93 }
94 auto pass =
95 std::shared_ptr<ComputePassVK>(new ComputePassVK(context,
96 shared_from_this()
97 ));
98 if (!pass->IsValid()) {
99 return nullptr;
100 }
101 return pass;
102}
std::weak_ptr< const Context > context_
◆ OnCreateRenderPass()
Implements impeller::CommandBuffer.
Definition at line 58 of file command_buffer_vk.cc.
59 {
61 if (!context) {
62 return nullptr;
63 }
64 auto pass =
65 std::shared_ptr<RenderPassVK>(new RenderPassVK(context,
67 shared_from_this()
68 ));
69 if (!pass->IsValid()) {
70 return nullptr;
71 }
72 return pass;
73}
◆ OnSubmitCommands()
◆ OnWaitUntilScheduled()
void impeller::CommandBufferVK::OnWaitUntilScheduled |
( |
| ) |
|
|
overrideprivatevirtual |
◆ SetLabel()
void impeller::CommandBufferVK::SetLabel |
( |
const std::string & |
label | ) |
const |
|
overrideprivatevirtual |
Implements impeller::CommandBuffer.
Definition at line 29 of file command_buffer_vk.cc.
29 {
30 if (!encoder_) {
31 encoder_factory_->SetLabel(label);
32 } else {
34 if (!context || !encoder_) {
35 return;
36 }
38 }
39}
static ContextVK & Cast(Context &base)
bool SetDebugName(T handle, std::string_view label) const
◆ ContextVK
The documentation for this class was generated from the following files: