Blender V5.3
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 82 of file vk_descriptor_pools.cc.

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

Referenced by allocate().

◆ init()

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

Definition at line 31 of file vk_descriptor_pools.cc.

Referenced by blender::gpu::VKThreadData::VKThreadData().

◆ recycle()

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

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