Flutter Engine
The Flutter Engine
|
Creates and manages the lifecycle of |vk::DescriptorPoolVK| objects. More...
#include <descriptor_pool_vk.h>
Public Member Functions | |
~DescriptorPoolRecyclerVK ()=default | |
DescriptorPoolRecyclerVK (std::weak_ptr< ContextVK > context) | |
Creates a recycler for the given |ContextVK|. More... | |
vk::UniqueDescriptorPool | Get () |
Gets a descriptor pool. More... | |
void | Reclaim (vk::UniqueDescriptorPool &&pool) |
Returns the descriptor pool to be reset on a background thread. More... | |
Static Public Attributes | |
static constexpr size_t | kMaxRecycledPools = 32u |
The maximum number of descriptor pools this recycler will hold onto. More... | |
Creates and manages the lifecycle of |vk::DescriptorPoolVK| objects.
Definition at line 51 of file descriptor_pool_vk.h.
|
default |
|
inlineexplicit |
Creates a recycler for the given |ContextVK|.
[in] | context | The context to create the recycler for. |
Definition at line 62 of file descriptor_pool_vk.h.
vk::UniqueDescriptorPool impeller::DescriptorPoolRecyclerVK::Get | ( | ) |
Gets a descriptor pool.
This may create a new descriptor pool if no existing pools had the necessary capacity.
Definition at line 151 of file descriptor_pool_vk.cc.
void impeller::DescriptorPoolRecyclerVK::Reclaim | ( | vk::UniqueDescriptorPool && | pool | ) |
Returns the descriptor pool to be reset on a background thread.
[in] | pool | The pool to recycler. |
Definition at line 133 of file descriptor_pool_vk.cc.
|
staticconstexpr |
The maximum number of descriptor pools this recycler will hold onto.
Definition at line 57 of file descriptor_pool_vk.h.