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

#include <Pool.hpp>

+ Collaboration diagram for ven::DescriptorPool::Builder:

Public Member Functions

 Builder (Device &device)
 
std::unique_ptr< DescriptorPoolbuild () const
 
BuilderaddPoolSize (const VkDescriptorType descriptorType, const uint32_t count)
 
BuildersetPoolFlags (const VkDescriptorPoolCreateFlags flags)
 
BuildersetMaxSets (const uint32_t count)
 

Private Attributes

Devicem_device
 
std::vector< VkDescriptorPoolSize > m_poolSizes
 
uint32_t m_maxSets {DEFAULT_MAX_SETS}
 
VkDescriptorPoolCreateFlags m_poolFlags {0}
 

Detailed Description

Definition at line 26 of file Pool.hpp.

Constructor & Destructor Documentation

◆ Builder()

ven::DescriptorPool::Builder::Builder ( Device & device)
inlineexplicit

Definition at line 30 of file Pool.hpp.

Member Function Documentation

◆ addPoolSize()

Builder & ven::DescriptorPool::Builder::addPoolSize ( const VkDescriptorType descriptorType,
const uint32_t count )
inline

Definition at line 34 of file Pool.hpp.

References m_poolSizes.

Referenced by ven::Engine::Engine().

+ Here is the caller graph for this function:

◆ build()

std::unique_ptr< DescriptorPool > ven::DescriptorPool::Builder::build ( ) const
inlinenodiscard

Definition at line 32 of file Pool.hpp.

References m_device, m_maxSets, m_poolFlags, and m_poolSizes.

Referenced by ven::Engine::Engine().

+ Here is the caller graph for this function:

◆ setMaxSets()

Builder & ven::DescriptorPool::Builder::setMaxSets ( const uint32_t count)
inline

Definition at line 36 of file Pool.hpp.

References m_maxSets.

Referenced by ven::Engine::Engine().

+ Here is the caller graph for this function:

◆ setPoolFlags()

Builder & ven::DescriptorPool::Builder::setPoolFlags ( const VkDescriptorPoolCreateFlags flags)
inline

Definition at line 35 of file Pool.hpp.

References m_poolFlags.

Referenced by ven::Engine::Engine().

+ Here is the caller graph for this function:

Member Data Documentation

◆ m_device

Device& ven::DescriptorPool::Builder::m_device
private

Definition at line 40 of file Pool.hpp.

Referenced by build().

◆ m_maxSets

uint32_t ven::DescriptorPool::Builder::m_maxSets {DEFAULT_MAX_SETS}
private

Definition at line 42 of file Pool.hpp.

Referenced by build(), and setMaxSets().

◆ m_poolFlags

VkDescriptorPoolCreateFlags ven::DescriptorPool::Builder::m_poolFlags {0}
private

Definition at line 43 of file Pool.hpp.

Referenced by build(), and setPoolFlags().

◆ m_poolSizes

std::vector<VkDescriptorPoolSize> ven::DescriptorPool::Builder::m_poolSizes
private

Definition at line 41 of file Pool.hpp.

Referenced by addPoolSize(), and build().


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