Blender V5.0
blender::gpu::VKDescriptorPools Class Reference

#include <vk_descriptor_pools.hh>

Public Member Functions

 ~VKDescriptorPools ()
void init (const VKDevice &vk_device)
VkDescriptorSet allocate (const VkDescriptorSetLayout descriptor_set_layout)
void recycle (VkDescriptorPool vk_descriptor_pool)

Detailed Description

List of VkDescriptorPools.

In Vulkan a pool is constructed with a fixed size per resource type. When more resources are needed it a next pool should be created. VKDescriptorPools will keep track of those pools and construct new pools when the previous one is exhausted.

Definition at line 25 of file vk_descriptor_pools.hh.

Constructor & Destructor Documentation

◆ ~VKDescriptorPools()

blender::gpu::VKDescriptorPools::~VKDescriptorPools ( )

Member Function Documentation

◆ allocate()

VkDescriptorSet blender::gpu::VKDescriptorPools::allocate ( const VkDescriptorSetLayout descriptor_set_layout)

Allocate a new descriptor set.

When the active descriptor pool is full it is discarded and another descriptor pool is ensured.

Definition at line 75 of file vk_descriptor_pools.cc.

References allocate(), BLI_assert, blender::gpu::VKBackend::device, ELEM, blender::gpu::VKBackend::get(), blender::gpu::VKContext::get(), result, and blender::gpu::VKDevice::vk_handle().

Referenced by allocate().

◆ init()

void blender::gpu::VKDescriptorPools::init ( const VKDevice & vk_device)

Definition at line 29 of file vk_descriptor_pools.cc.

◆ recycle()

void blender::gpu::VKDescriptorPools::recycle ( VkDescriptorPool vk_descriptor_pool)

Recycle a previous discarded descriptor pool.

Definition at line 67 of file vk_descriptor_pools.cc.

References blender::gpu::VKBackend::device, blender::gpu::VKBackend::get(), lock, and blender::gpu::VKDevice::vk_handle().


The documentation for this class was generated from the following files: