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 VkDescriptorSetids (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.
 
 DescriptorSets (void)=default
 
 ~DescriptorSets (void)
 
VkDescriptorSetLayout layout (void) const
 
std::span< const VkDescriptorSetids (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< VkDescriptorSeths = {}
 
std::vector< VkDescriptorType > types = {}
 

Constructor & Destructor Documentation

◆ DescriptorSets() [1/2]

nngn::DescriptorSets::DescriptorSets ( void  )
default

◆ ~DescriptorSets() [1/2]

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

◆ DescriptorSets() [2/2]

nngn::DescriptorSets::DescriptorSets ( void  )
default

◆ ~DescriptorSets() [2/2]

nngn::DescriptorSets::~DescriptorSets ( void  )

Member Function Documentation

◆ destroy() [1/2]

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:

◆ destroy() [2/2]

void nngn::DescriptorSets::destroy ( )

Destroys resources associated with the sets.

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

◆ ids() [1/2]

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

◆ ids() [2/2]

std::span< const VkDescriptorSet > nngn::DescriptorSets::ids ( void  ) const
inline

◆ init() [1/2]

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

◆ init() [2/2]

bool nngn::DescriptorSets::init ( VkDevice  dev,
std::span< const VkDescriptorSetLayoutBinding >  bindings 
)

◆ layout() [1/2]

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

◆ layout() [2/2]

VkDescriptorSetLayout nngn::DescriptorSets::layout ( void  ) const
inline

◆ reset() [1/2]

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:

◆ reset() [2/2]

bool nngn::DescriptorSets::reset ( VkDescriptorPool  pool,
std::uint32_t  max 
)

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: