|
Blender V5.0
|
#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) |
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.
| blender::gpu::VKDescriptorPools::~VKDescriptorPools | ( | ) |
Definition at line 16 of file vk_descriptor_pools.cc.
References blender::gpu::VKBackend::device, blender::gpu::VKBackend::get(), and blender::gpu::VKDevice::vk_handle().
| 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().
| void blender::gpu::VKDescriptorPools::init | ( | const VKDevice & | vk_device | ) |
Definition at line 29 of file vk_descriptor_pools.cc.
| 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().