MayaFlux 0.1.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ grow_pools()

bool MayaFlux::Core::VKDescriptorManager::grow_pools ( vk::Device  device)
private

Grow pool capacity by allocating new pool.

Parameters
deviceLogical device
Returns
true if new pool created successfully

Definition at line 233 of file VKDescriptorManager.cpp.

234{
235 auto new_pool = create_pool(device, m_pool_size);
236 if (!new_pool) {
238 "Failed to grow descriptor pool");
239 return false;
240 }
241
242 m_pools.push_back(new_pool);
244 m_current_pool_index = m_pools.size() - 1;
245
247 "Grew descriptor pools (new capacity: {} sets)", m_pool_capacity);
248
249 return true;
250}
#define MF_INFO(comp, ctx,...)
#define MF_ERROR(comp, ctx,...)
uint32_t m_pool_capacity
Total capacity across all pools.
vk::DescriptorPool create_pool(vk::Device device, uint32_t max_sets)
Create a new descriptor pool.
std::vector< vk::DescriptorPool > m_pools
@ GraphicsBackend
Graphics/visual rendering backend (Vulkan, OpenGL)
@ Core
Core engine, backend, subsystems.

References MayaFlux::Journal::Core, create_pool(), MayaFlux::Journal::GraphicsBackend, m_current_pool_index, m_pool_capacity, m_pool_size, m_pools, MF_ERROR, and MF_INFO.

Referenced by allocate_set(), and allocate_sets().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: