#include <command_encoder_vk.h>
Definition at line 50 of file command_encoder_vk.h.
◆ SubmitCallback
◆ CommandEncoderVK()
Definition at line 68 of file command_encoder_vk.cc.
73 : device_holder_(std::move(device_holder)),
74 tracked_objects_(std::move(tracked_objects)),
75 queue_(queue),
76 fence_waiter_(std::move(fence_waiter)) {}
◆ ~CommandEncoderVK()
impeller::CommandEncoderVK::~CommandEncoderVK |
( |
| ) |
|
|
default |
◆ AllocateDescriptorSets()
fml::StatusOr< vk::DescriptorSet > impeller::CommandEncoderVK::AllocateDescriptorSets |
( |
const vk::DescriptorSetLayout & |
layout, |
|
|
const ContextVK & |
context |
|
) |
| |
Definition at line 164 of file command_encoder_vk.cc.
166 {
169 }
170
171 return tracked_objects_->GetDescriptorPool().AllocateDescriptorSets(layout,
172 context);
173}
◆ EndCommandBuffer()
bool impeller::CommandEncoderVK::EndCommandBuffer |
( |
| ) |
const |
Definition at line 84 of file command_encoder_vk.cc.
84 {
86
88 tracked_objects_->GetGPUProbe().RecordCmdBufferEnd(command_buffer);
89
90 auto status = command_buffer.end();
91 if (status != vk::Result::eSuccess) {
92 VALIDATION_LOG <<
"Failed to end command buffer: " << vk::to_string(status);
93 return false;
94 }
95 return true;
96}
vk::CommandBuffer GetCommandBuffer() const
void InsertDebugMarker(std::string_view label) const
◆ GetCommandBuffer()
vk::CommandBuffer impeller::CommandEncoderVK::GetCommandBuffer |
( |
| ) |
const |
Definition at line 98 of file command_encoder_vk.cc.
98 {
99 if (tracked_objects_) {
100 return tracked_objects_->GetCommandBuffer();
101 }
102 return {};
103}
◆ InsertDebugMarker()
void impeller::CommandEncoderVK::InsertDebugMarker |
( |
std::string_view |
label | ) |
const |
Definition at line 195 of file command_encoder_vk.cc.
195 {
197 return;
198 }
199 vk::DebugUtilsLabelEXT label_info;
200 label_info.pLabelName = label.data();
202 command_buffer.insertDebugUtilsLabelEXT(label_info);
203 }
204 if (queue_) {
205 queue_->InsertDebugMarker(label);
206 }
207}
bool HasValidationLayers()
◆ IsTracking() [1/2]
bool impeller::CommandEncoderVK::IsTracking |
( |
const std::shared_ptr< const DeviceBuffer > & |
texture | ) |
const |
Definition at line 128 of file command_encoder_vk.cc.
129 {
131 return false;
132 }
133 return tracked_objects_->IsTracking(
buffer);
134}
static const uint8_t buffer[]
◆ IsTracking() [2/2]
bool impeller::CommandEncoderVK::IsTracking |
( |
const std::shared_ptr< const Texture > & |
texture | ) |
const |
Definition at line 154 of file command_encoder_vk.cc.
155 {
157 return false;
158 }
159 std::shared_ptr<const TextureSourceVK>
source =
161 return tracked_objects_->IsTracking(
source);
162}
static TextureVK & Cast(Texture &base)
std::shared_ptr< const TextureSourceVK > GetTextureSource() const
◆ IsValid()
bool impeller::CommandEncoderVK::IsValid |
( |
| ) |
const |
◆ PopDebugGroup()
void impeller::CommandEncoderVK::PopDebugGroup |
( |
| ) |
const |
Definition at line 186 of file command_encoder_vk.cc.
186 {
188 return;
189 }
191 command_buffer.endDebugUtilsLabelEXT();
192 }
193}
◆ PushDebugGroup()
void impeller::CommandEncoderVK::PushDebugGroup |
( |
std::string_view |
label | ) |
const |
Definition at line 175 of file command_encoder_vk.cc.
175 {
177 return;
178 }
179 vk::DebugUtilsLabelEXT label_info;
180 label_info.pLabelName = label.data();
182 command_buffer.beginDebugUtilsLabelEXT(label_info);
183 }
184}
◆ Track() [1/4]
bool impeller::CommandEncoderVK::Track |
( |
const std::shared_ptr< const Texture > & |
texture | ) |
|
Definition at line 144 of file command_encoder_vk.cc.
144 {
146 return false;
147 }
149 return true;
150 }
152}
bool Track(std::shared_ptr< SharedObjectVK > object)
◆ Track() [2/4]
bool impeller::CommandEncoderVK::Track |
( |
std::shared_ptr< const DeviceBuffer > |
buffer | ) |
|
Definition at line 120 of file command_encoder_vk.cc.
120 {
122 return false;
123 }
124 tracked_objects_->Track(std::move(
buffer));
125 return true;
126}
◆ Track() [3/4]
bool impeller::CommandEncoderVK::Track |
( |
std::shared_ptr< const TextureSourceVK > |
texture | ) |
|
◆ Track() [4/4]
bool impeller::CommandEncoderVK::Track |
( |
std::shared_ptr< SharedObjectVK > |
object | ) |
|
Definition at line 112 of file command_encoder_vk.cc.
112 {
114 return false;
115 }
116 tracked_objects_->Track(std::move(object));
117 return true;
118}
◆ CommandQueueVK
◆ ContextVK
The documentation for this class was generated from the following files: