vengine  0.1.0
3D graphics engine made with Vulkan
Loading...
Searching...
No Matches
ven::DescriptorPool Class Reference

Class for descriptor pool. More...

#include <Descriptors.hpp>

+ Collaboration diagram for ven::DescriptorPool:

Classes

class  Builder
 

Public Member Functions

 DescriptorPool (Device &device, uint32_t maxSets, VkDescriptorPoolCreateFlags poolFlags, const std::vector< VkDescriptorPoolSize > &poolSizes)
 
 ~DescriptorPool ()
 
 DescriptorPool (const DescriptorPool &)=delete
 
DescriptorPooloperator= (const DescriptorPool &)=delete
 
bool allocateDescriptor (VkDescriptorSetLayout descriptorSetLayout, VkDescriptorSet &descriptor) const
 
void freeDescriptors (const std::vector< VkDescriptorSet > &descriptors) const
 
void resetPool () const
 

Private Attributes

Devicem_device
 
VkDescriptorPool m_descriptorPool
 

Friends

class DescriptorWriter
 

Detailed Description

Class for descriptor pool.

Definition at line 61 of file Descriptors.hpp.

Constructor & Destructor Documentation

◆ DescriptorPool() [1/2]

ven::DescriptorPool::DescriptorPool ( Device & device,
uint32_t maxSets,
VkDescriptorPoolCreateFlags poolFlags,
const std::vector< VkDescriptorPoolSize > & poolSizes )

Definition at line 56 of file descriptors.cpp.

References ven::Device::device(), m_descriptorPool, and m_device.

+ Here is the call graph for this function:

◆ ~DescriptorPool()

ven::DescriptorPool::~DescriptorPool ( )
inline

Definition at line 85 of file Descriptors.hpp.

References ven::Device::device(), m_descriptorPool, and m_device.

+ Here is the call graph for this function:

◆ DescriptorPool() [2/2]

ven::DescriptorPool::DescriptorPool ( const DescriptorPool & )
delete

Member Function Documentation

◆ allocateDescriptor()

bool ven::DescriptorPool::allocateDescriptor ( VkDescriptorSetLayout descriptorSetLayout,
VkDescriptorSet & descriptor ) const

Definition at line 71 of file descriptors.cpp.

◆ freeDescriptors()

void ven::DescriptorPool::freeDescriptors ( const std::vector< VkDescriptorSet > & descriptors) const
inline

Definition at line 91 of file Descriptors.hpp.

References ven::Device::device(), m_descriptorPool, and m_device.

+ Here is the call graph for this function:

◆ operator=()

DescriptorPool & ven::DescriptorPool::operator= ( const DescriptorPool & )
delete

◆ resetPool()

void ven::DescriptorPool::resetPool ( ) const
inline

Definition at line 93 of file Descriptors.hpp.

References ven::Device::device(), m_descriptorPool, and m_device.

+ Here is the call graph for this function:

Friends And Related Symbol Documentation

◆ DescriptorWriter

friend class DescriptorWriter
friend

Definition at line 100 of file Descriptors.hpp.

Member Data Documentation

◆ m_descriptorPool

VkDescriptorPool ven::DescriptorPool::m_descriptorPool
private

Definition at line 98 of file Descriptors.hpp.

Referenced by DescriptorPool(), freeDescriptors(), resetPool(), and ~DescriptorPool().

◆ m_device

Device& ven::DescriptorPool::m_device
private

Definition at line 97 of file Descriptors.hpp.

Referenced by DescriptorPool(), freeDescriptors(), resetPool(), and ~DescriptorPool().


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