#include <command_encoder_vk.h>
Public Types | |
| using | SubmitCallback = std::function< void(bool)> |
Public Member Functions | |
| CommandEncoderVK (std::weak_ptr< const DeviceHolder > 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 | Submit (SubmitCallback callback={}) |
| bool | Track (std::shared_ptr< SharedObjectVK > object) |
| bool | Track (std::shared_ptr< const Buffer > buffer) |
| bool | IsTracking (const std::shared_ptr< const Buffer > &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 (const char *label) const |
| void | PopDebugGroup () const |
| void | InsertDebugMarker (const char *label) const |
| std::optional< vk::DescriptorSet > | AllocateDescriptorSet (const vk::DescriptorSetLayout &layout, size_t command_count) |
Friends | |
| class | ContextVK |
Definition at line 45 of file command_encoder_vk.h.
| using impeller::CommandEncoderVK::SubmitCallback = std::function<void(bool)> |
Definition at line 47 of file command_encoder_vk.h.
| impeller::CommandEncoderVK::CommandEncoderVK | ( | std::weak_ptr< const DeviceHolder > | device_holder, |
| std::shared_ptr< TrackedObjectsVK > | tracked_objects, | ||
| const std::shared_ptr< QueueVK > & | queue, | ||
| std::shared_ptr< FenceWaiterVK > | fence_waiter | ||
| ) |
Definition at line 142 of file command_encoder_vk.cc.
|
default |
| std::optional< vk::DescriptorSet > impeller::CommandEncoderVK::AllocateDescriptorSet | ( | const vk::DescriptorSetLayout & | layout, |
| size_t | command_count | ||
| ) |
Definition at line 284 of file command_encoder_vk.cc.
References IsValid().
Referenced by impeller::AllocateAndBindDescriptorSets().
| vk::CommandBuffer impeller::CommandEncoderVK::GetCommandBuffer | ( | ) | const |
Definition at line 218 of file command_encoder_vk.cc.
Referenced by impeller::BlitCopyTextureToTextureCommandVK::Encode(), impeller::BlitCopyTextureToBufferCommandVK::Encode(), impeller::BlitCopyBufferToTextureCommandVK::Encode(), impeller::BlitGenerateMipmapCommandVK::Encode(), impeller::EncodeCommand(), InsertDebugMarker(), PopDebugGroup(), PushDebugGroup(), and Submit().
| void impeller::CommandEncoderVK::InsertDebugMarker | ( | const char * | label | ) | const |
Definition at line 315 of file command_encoder_vk.cc.
References GetCommandBuffer(), and impeller::HasValidationLayers().
Referenced by Submit().
| bool impeller::CommandEncoderVK::IsTracking | ( | const std::shared_ptr< const Buffer > & | texture | ) | const |
| bool impeller::CommandEncoderVK::IsTracking | ( | const std::shared_ptr< const Texture > & | texture | ) | const |
Definition at line 274 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 154 of file command_encoder_vk.cc.
Referenced by AllocateDescriptorSet(), IsTracking(), Submit(), and Track().
| void impeller::CommandEncoderVK::PopDebugGroup | ( | ) | const |
Definition at line 306 of file command_encoder_vk.cc.
References GetCommandBuffer(), and impeller::HasValidationLayers().
Referenced by impeller::EncodeCommand().
| void impeller::CommandEncoderVK::PushDebugGroup | ( | const char * | label | ) | const |
Definition at line 295 of file command_encoder_vk.cc.
References GetCommandBuffer(), and impeller::HasValidationLayers().
Referenced by impeller::EncodeCommand().
| bool impeller::CommandEncoderVK::Submit | ( | SubmitCallback | callback = {} | ) |
Definition at line 158 of file command_encoder_vk.cc.
References GetCommandBuffer(), InsertDebugMarker(), IsValid(), and VALIDATION_LOG.
| bool impeller::CommandEncoderVK::Track | ( | const std::shared_ptr< const Texture > & | texture | ) |
Definition at line 264 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 Buffer > | buffer | ) |
| bool impeller::CommandEncoderVK::Track | ( | std::shared_ptr< const TextureSourceVK > | texture | ) |
| bool impeller::CommandEncoderVK::Track | ( | std::shared_ptr< SharedObjectVK > | object | ) |
Definition at line 232 of file command_encoder_vk.cc.
References IsValid().
Referenced by impeller::AllocateAndBindDescriptorSets(), impeller::BlitCopyTextureToTextureCommandVK::Encode(), impeller::BlitCopyTextureToBufferCommandVK::Encode(), impeller::BlitCopyBufferToTextureCommandVK::Encode(), impeller::BlitGenerateMipmapCommandVK::Encode(), impeller::EncodeCommand(), and Track().
|
friend |
Definition at line 86 of file command_encoder_vk.h.