#include <command_encoder_vk.h>
Definition at line 32 of file command_encoder_vk.h.
◆ CommandEncoderFactoryVK()
impeller::CommandEncoderFactoryVK::CommandEncoderFactoryVK |
( |
const std::weak_ptr< const ContextVK > & |
context | ) |
|
|
explicit |
◆ Create()
std::shared_ptr< CommandEncoderVK > impeller::CommandEncoderFactoryVK::Create |
( |
| ) |
|
Definition at line 27 of file command_encoder_vk.cc.
28 auto context = context_.lock();
32 auto recycler = context->GetCommandPoolRecycler();
36 auto tls_pool = recycler->Get();
41 auto tracked_objects = std::make_shared<TrackedObjectsVK>(
42 context, tls_pool, context->GetGPUTracer()->CreateGPUProbe());
43 auto queue = context->GetGraphicsQueue();
45 if (!tracked_objects || !tracked_objects->IsValid() || !queue) {
49 vk::CommandBufferBeginInfo begin_info;
50 begin_info.flags = vk::CommandBufferUsageFlagBits::eOneTimeSubmit;
51 if (tracked_objects->GetCommandBuffer().begin(begin_info) !=
52 vk::Result::eSuccess) {
57 if (label_.has_value()) {
58 context->SetDebugName(tracked_objects->GetCommandBuffer(), label_.value());
60 tracked_objects->GetGPUProbe().RecordCmdBufferStart(
61 tracked_objects->GetCommandBuffer());
63 return std::make_shared<CommandEncoderVK>(context->GetDeviceHolder(),
64 tracked_objects, queue,
65 context->GetFenceWaiter());
References VALIDATION_LOG.
Referenced by impeller::testing::TEST().
◆ SetLabel()
void impeller::CommandEncoderFactoryVK::SetLabel |
( |
const std::string & |
label | ) |
|
The documentation for this class was generated from the following files: