Definition at line 21 of file command_pool_vk.cc.
◆ BackgroundCommandPoolVK() [1/2]
◆ BackgroundCommandPoolVK() [2/2]
impeller::BackgroundCommandPoolVK::BackgroundCommandPoolVK |
( |
vk::UniqueCommandPool && |
pool, |
|
|
std::vector< vk::UniqueCommandBuffer > && |
buffers, |
|
|
size_t |
unused_count, |
|
|
std::weak_ptr< CommandPoolRecyclerVK > |
recycler |
|
) |
| |
|
inlineexplicit |
Definition at line 29 of file command_pool_vk.cc.
34 : pool_(std::move(
pool)),
35 buffers_(std::move(buffers)),
36 unused_count_(unused_count),
37 recycler_(std::move(recycler)) {}
◆ ~BackgroundCommandPoolVK()
impeller::BackgroundCommandPoolVK::~BackgroundCommandPoolVK |
( |
| ) |
|
|
inline |
Definition at line 39 of file command_pool_vk.cc.
39 {
40 auto const recycler = recycler_.lock();
41
42
43
44
45
46 if (!recycler) {
47 return;
48 }
49
51 for (
auto i = 0u;
i < unused_count_;
i++) {
52 buffers_.pop_back();
53 }
54 }
55
56 recycler->Reclaim(std::move(pool_), std::move(buffers_));
57 }
static constexpr size_t kUnusedCommandBufferLimit
◆ kUnusedCommandBufferLimit
constexpr size_t impeller::BackgroundCommandPoolVK::kUnusedCommandBufferLimit = 16u |
|
staticconstexpr |
The documentation for this class was generated from the following file: