nngn
Loading...
Searching...
No Matches
nngn::DescriptorSets Class Reference

#include <descriptor.h>

Inheritance diagram for nngn::DescriptorSets:

Public Member Functions

 DescriptorSets (void)=default
 
 ~DescriptorSets (void)
 
VkDescriptorSetLayout layout (void) const
 
std::span< const VkDescriptorSet > ids (void) const
 
bool init (VkDevice dev, std::span< const VkDescriptorSetLayoutBinding > bindings)
 
bool reset (VkDescriptorPool pool, std::uint32_t max)
 
void destroy ()
 Destroys resources associated with the sets.
 

Protected Attributes

VkDevice dev = {}
 

Private Attributes

VkDescriptorSetLayout m_layout = {}
 
std::vector< VkDescriptorSet > hs = {}
 
std::vector< VkDescriptorType > types = {}
 

Constructor & Destructor Documentation

◆ DescriptorSets()

nngn::DescriptorSets::DescriptorSets ( void )
default

◆ ~DescriptorSets()

nngn::DescriptorSets::~DescriptorSets ( void )
Here is the call graph for this function:

Member Function Documentation

◆ destroy()

void nngn::DescriptorSets::destroy ( )

Destroys resources associated with the sets.

Assumes ids have already been destroyed (e.g. by resetting the pool).

Here is the caller graph for this function:

◆ ids()

std::span< const VkDescriptorSet > nngn::DescriptorSets::ids ( void ) const
inline
Here is the caller graph for this function:

◆ init()

bool nngn::DescriptorSets::init ( VkDevice dev,
std::span< const VkDescriptorSetLayoutBinding > bindings )
Here is the call graph for this function:

◆ layout()

VkDescriptorSetLayout nngn::DescriptorSets::layout ( void ) const
inline
Here is the caller graph for this function:

◆ reset()

bool nngn::DescriptorSets::reset ( VkDescriptorPool pool,
std::uint32_t max )
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ dev

VkDevice nngn::DescriptorSets::dev = {}
protected

◆ hs

std::vector<VkDescriptorSet> nngn::DescriptorSets::hs = {}
private

◆ m_layout

VkDescriptorSetLayout nngn::DescriptorSets::m_layout = {}
private

◆ types

std::vector<VkDescriptorType> nngn::DescriptorSets::types = {}
private

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