Flutter Engine
The Flutter Engine
|
A per-frame descriptor pool. Descriptors from this pool don't need to be freed individually. Instead, the pool must be collected after all the descriptors allocated from it are done being used. More...
#include <descriptor_pool_vk.h>
Public Member Functions | |
DescriptorPoolVK (std::weak_ptr< const ContextVK > context) | |
~DescriptorPoolVK () | |
fml::StatusOr< vk::DescriptorSet > | AllocateDescriptorSets (const vk::DescriptorSetLayout &layout, const ContextVK &context_vk) |
A per-frame descriptor pool. Descriptors from this pool don't need to be freed individually. Instead, the pool must be collected after all the descriptors allocated from it are done being used.
The pool or it's descriptors may not be accessed from multiple threads.
Encoders create pools as necessary as they have the same threading and lifecycle restrictions.
Definition at line 27 of file descriptor_pool_vk.h.
|
explicit |
Definition at line 67 of file descriptor_pool_vk.cc.
impeller::DescriptorPoolVK::~DescriptorPoolVK | ( | ) |
Definition at line 70 of file descriptor_pool_vk.cc.
fml::StatusOr< vk::DescriptorSet > impeller::DescriptorPoolVK::AllocateDescriptorSets | ( | const vk::DescriptorSetLayout & | layout, |
const ContextVK & | context_vk | ||
) |
Definition at line 94 of file descriptor_pool_vk.cc.