Blender V4.3
blender::gpu::VKDescriptorSetLayouts Class Reference

#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
 

Detailed Description

Registries of descriptor set layouts.

Definition at line 70 of file vk_descriptor_set_layouts.hh.

Constructor & Destructor Documentation

◆ VKDescriptorSetLayouts()

blender::gpu::VKDescriptorSetLayouts::VKDescriptorSetLayouts ( )

Definition at line 14 of file vk_descriptor_set_layouts.cc.

◆ ~VKDescriptorSetLayouts()

blender::gpu::VKDescriptorSetLayouts::~VKDescriptorSetLayouts ( )
virtual

Definition at line 21 of file vk_descriptor_set_layouts.cc.

References deinit().

Member Function Documentation

◆ 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().

◆ get_or_create()

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().

◆ size()

int64_t blender::gpu::VKDescriptorSetLayouts::size ( ) const
inline

Friends And Related Symbol Documentation

◆ VKDevice

friend class VKDevice
friend

Definition at line 71 of file vk_descriptor_set_layouts.hh.


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