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

#include <Descriptors.hpp>

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

Public Member Functions

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

Private Attributes

Devicem_device
 
std::vector< VkDescriptorPoolSize > m_poolSizes
 
uint32_t m_maxSets = 1000
 
VkDescriptorPoolCreateFlags m_poolFlags = 0
 

Detailed Description

Definition at line 65 of file Descriptors.hpp.

Constructor & Destructor Documentation

◆ Builder()

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

Definition at line 69 of file Descriptors.hpp.

Member Function Documentation

◆ addPoolSize()

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

Definition at line 39 of file descriptors.cpp.

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 74 of file Descriptors.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()

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

Definition at line 50 of file descriptors.cpp.

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

+ Here is the caller graph for this function:

◆ setPoolFlags()

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

Definition at line 45 of file descriptors.cpp.

Member Data Documentation

◆ m_device

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

Definition at line 78 of file Descriptors.hpp.

Referenced by build().

◆ m_maxSets

uint32_t ven::DescriptorPool::Builder::m_maxSets = 1000
private

Definition at line 80 of file Descriptors.hpp.

Referenced by build().

◆ m_poolFlags

VkDescriptorPoolCreateFlags ven::DescriptorPool::Builder::m_poolFlags = 0
private

Definition at line 81 of file Descriptors.hpp.

Referenced by build().

◆ m_poolSizes

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

Definition at line 79 of file Descriptors.hpp.

Referenced by build().


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