#include <command_encoder_vk.h>
Public Types | |
using | SubmitCallback = std::function< void(bool)> |
Public Member Functions | |
CommandEncoderVK (std::weak_ptr< const DeviceHolderVK > device_holder, std::shared_ptr< TrackedObjectsVK > tracked_objects, const std::shared_ptr< QueueVK > &queue, std::shared_ptr< FenceWaiterVK > fence_waiter) | |
~CommandEncoderVK () | |
bool | IsValid () const |
bool | Track (std::shared_ptr< SharedObjectVK > object) |
bool | Track (std::shared_ptr< const DeviceBuffer > buffer) |
bool | IsTracking (const std::shared_ptr< const DeviceBuffer > &texture) const |
bool | Track (const std::shared_ptr< const Texture > &texture) |
bool | IsTracking (const std::shared_ptr< const Texture > &texture) const |
bool | Track (std::shared_ptr< const TextureSourceVK > texture) |
vk::CommandBuffer | GetCommandBuffer () const |
void | PushDebugGroup (std::string_view label) const |
void | PopDebugGroup () const |
void | InsertDebugMarker (std::string_view label) const |
bool | EndCommandBuffer () const |
fml::StatusOr< vk::DescriptorSet > | AllocateDescriptorSets (const vk::DescriptorSetLayout &layout, const ContextVK &context) |
Friends | |
class | ContextVK |
class | CommandQueueVK |
Definition at line 50 of file command_encoder_vk.h.
using impeller::CommandEncoderVK::SubmitCallback = std::function<void(bool)> |
Definition at line 52 of file command_encoder_vk.h.
impeller::CommandEncoderVK::CommandEncoderVK | ( | std::weak_ptr< const DeviceHolderVK > | device_holder, |
std::shared_ptr< TrackedObjectsVK > | tracked_objects, | ||
const std::shared_ptr< QueueVK > & | queue, | ||
std::shared_ptr< FenceWaiterVK > | fence_waiter | ||
) |
Definition at line 68 of file command_encoder_vk.cc.
|
default |
fml::StatusOr< vk::DescriptorSet > impeller::CommandEncoderVK::AllocateDescriptorSets | ( | const vk::DescriptorSetLayout & | layout, |
const ContextVK & | context | ||
) |
bool impeller::CommandEncoderVK::EndCommandBuffer | ( | ) | const |
Definition at line 84 of file command_encoder_vk.cc.
References GetCommandBuffer(), InsertDebugMarker(), and VALIDATION_LOG.
vk::CommandBuffer impeller::CommandEncoderVK::GetCommandBuffer | ( | ) | const |
Definition at line 98 of file command_encoder_vk.cc.
Referenced by impeller::BlitCopyTextureToTextureCommandVK::Encode(), impeller::BlitCopyTextureToBufferCommandVK::Encode(), impeller::BlitCopyBufferToTextureCommandVK::Encode(), impeller::BlitGenerateMipmapCommandVK::Encode(), EndCommandBuffer(), InsertDebugMarker(), PopDebugGroup(), and PushDebugGroup().
void impeller::CommandEncoderVK::InsertDebugMarker | ( | std::string_view | label | ) | const |
Definition at line 195 of file command_encoder_vk.cc.
References GetCommandBuffer(), and impeller::HasValidationLayers().
Referenced by EndCommandBuffer().
bool impeller::CommandEncoderVK::IsTracking | ( | const std::shared_ptr< const DeviceBuffer > & | texture | ) | const |
bool impeller::CommandEncoderVK::IsTracking | ( | const std::shared_ptr< const Texture > & | texture | ) | const |
Definition at line 154 of file command_encoder_vk.cc.
References impeller::BackendCast< TextureVK, Texture >::Cast(), impeller::TextureVK::GetTextureSource(), and IsValid().
bool impeller::CommandEncoderVK::IsValid | ( | ) | const |
Definition at line 80 of file command_encoder_vk.cc.
Referenced by AllocateDescriptorSets(), IsTracking(), and Track().
void impeller::CommandEncoderVK::PopDebugGroup | ( | ) | const |
Definition at line 186 of file command_encoder_vk.cc.
References GetCommandBuffer(), and impeller::HasValidationLayers().
void impeller::CommandEncoderVK::PushDebugGroup | ( | std::string_view | label | ) | const |
Definition at line 175 of file command_encoder_vk.cc.
References GetCommandBuffer(), and impeller::HasValidationLayers().
bool impeller::CommandEncoderVK::Track | ( | const std::shared_ptr< const Texture > & | texture | ) |
Definition at line 144 of file command_encoder_vk.cc.
References impeller::BackendCast< TextureVK, Texture >::Cast(), impeller::TextureVK::GetTextureSource(), IsValid(), and Track().
bool impeller::CommandEncoderVK::Track | ( | std::shared_ptr< const DeviceBuffer > | buffer | ) |
bool impeller::CommandEncoderVK::Track | ( | std::shared_ptr< const TextureSourceVK > | texture | ) |
bool impeller::CommandEncoderVK::Track | ( | std::shared_ptr< SharedObjectVK > | object | ) |
Definition at line 112 of file command_encoder_vk.cc.
References IsValid().
Referenced by impeller::BlitCopyTextureToTextureCommandVK::Encode(), impeller::BlitCopyTextureToBufferCommandVK::Encode(), impeller::BlitCopyBufferToTextureCommandVK::Encode(), impeller::BlitGenerateMipmapCommandVK::Encode(), and Track().
|
friend |
Definition at line 92 of file command_encoder_vk.h.
|
friend |
Definition at line 91 of file command_encoder_vk.h.