vengine  0.0.1
3D graphics engine
Loading...
Searching...
No Matches
ven::DescriptorPool Class Reference

Class for descriptor pool. More...

#include <Pool.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
 
 DescriptorPool (DescriptorPool &&)=delete
 
DescriptorPooloperator= (DescriptorPool &&)=delete
 
bool allocateDescriptor (VkDescriptorSetLayout descriptorSetLayout, VkDescriptorSet &descriptor) const
 
void freeDescriptors (const std::vector< VkDescriptorSet > &descriptors) const
 
void resetPool () const
 
VkDescriptorPool getDescriptorPool () const
 

Private Attributes

Devicem_device
 
VkDescriptorPool m_descriptorPool
 

Friends

class DescriptorWriter
 

Detailed Description

Class for descriptor pool.

Definition at line 22 of file Pool.hpp.

Constructor & Destructor Documentation

◆ DescriptorPool() [1/3]

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

Definition at line 5 of file pool.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 48 of file Pool.hpp.

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

+ Here is the call graph for this function:

◆ DescriptorPool() [2/3]

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

◆ DescriptorPool() [3/3]

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

Member Function Documentation

◆ allocateDescriptor()

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

Definition at line 20 of file pool.cpp.

◆ freeDescriptors()

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

Definition at line 56 of file Pool.hpp.

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

+ Here is the call graph for this function:

◆ getDescriptorPool()

VkDescriptorPool ven::DescriptorPool::getDescriptorPool ( ) const
inlinenodiscard

Definition at line 59 of file Pool.hpp.

References m_descriptorPool.

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

◆ resetPool()

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

Definition at line 57 of file Pool.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 65 of file Pool.hpp.

Member Data Documentation

◆ m_descriptorPool

VkDescriptorPool ven::DescriptorPool::m_descriptorPool
private

◆ m_device

Device& ven::DescriptorPool::m_device
private

Definition at line 63 of file Pool.hpp.

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


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