|
Blender V4.3
|
#include <vk_descriptor_set_layouts.hh>
Inherits blender::NonCopyable.
Public Member Functions | |
| VKDescriptorSetLayouts () | |
| virtual | ~VKDescriptorSetLayouts () |
| VkDescriptorSetLayout | get_or_create (const VKDescriptorSetLayoutInfo &info, bool &r_created, bool &r_needed) |
| void | deinit () |
| int64_t | size () const |
Friends | |
| class | VKDevice |
Registries of descriptor set layouts.
Definition at line 70 of file vk_descriptor_set_layouts.hh.
| blender::gpu::VKDescriptorSetLayouts::VKDescriptorSetLayouts | ( | ) |
Definition at line 14 of file vk_descriptor_set_layouts.cc.
|
virtual |
Definition at line 21 of file vk_descriptor_set_layouts.cc.
References deinit().
| void blender::gpu::VKDescriptorSetLayouts::deinit | ( | ) |
Free all descriptor set layouts.
This method is called when the VKDevice is destroyed.
Definition at line 83 of file vk_descriptor_set_layouts.cc.
References blender::gpu::VKBackend::device, blender::gpu::VKBackend::get(), mutex, VK_ALLOCATION_CALLBACKS, and blender::gpu::VKDevice::vk_handle().
Referenced by blender::gpu::VKDevice::deinit(), and ~VKDescriptorSetLayouts().
| VkDescriptorSetLayout blender::gpu::VKDescriptorSetLayouts::get_or_create | ( | const VKDescriptorSetLayoutInfo & | info, |
| bool & | r_created, | ||
| bool & | r_needed ) |
Get an existing descriptor set layout, or create when not available. r_created is set to true when a new descriptor set layout was created, set to false when an existing descriptor set layout is returned. r_needed is set to true, when a descriptor set layout is needed
Definition at line 26 of file vk_descriptor_set_layouts.cc.
References blender::gpu::VKDescriptorSetLayoutInfo::bindings, BLI_assert, blender::Vector< T, InlineBufferCapacity, Allocator >::clear(), blender::Vector< T, InlineBufferCapacity, Allocator >::data(), blender::gpu::VKBackend::device, blender::gpu::VKBackend::get(), blender::Vector< T, InlineBufferCapacity, Allocator >::is_empty(), mutex, blender::Vector< T, InlineBufferCapacity, Allocator >::size(), VK_ALLOCATION_CALLBACKS, and blender::gpu::VKDevice::vk_handle().
|
inline |
Return the number of descriptor set layouts.
Definition at line 110 of file vk_descriptor_set_layouts.hh.
References blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::size().
Referenced by blender::gpu::VKDevice::debug_print().
|
friend |
Definition at line 71 of file vk_descriptor_set_layouts.hh.