Nameless Engine
Loading...
Searching...
No Matches
ne::DescriptorSetLayoutGenerator::Generated Struct Reference

#include <DescriptorSetLayoutGenerator.h>

Public Attributes

VkDescriptorSetLayout pDescriptorSetLayout = nullptr
 
VkDescriptorPool pDescriptorPool = nullptr
 
std::array< VkDescriptorSet, FrameResourceManager::getFrameResourceCount()> vDescriptorSets
 
std::unordered_map< std::string, uint32_t, StdStringHash, std::equal_to<> > resourceBindings
 
std::unordered_map< std::string, size_t > pushConstantUintFieldOffsets
 

Detailed Description

Groups generated data.

Member Data Documentation

◆ pDescriptorPool

VkDescriptorPool ne::DescriptorSetLayoutGenerator::Generated::pDescriptorPool = nullptr

Created descriptor pool.

◆ pDescriptorSetLayout

VkDescriptorSetLayout ne::DescriptorSetLayoutGenerator::Generated::pDescriptorSetLayout = nullptr

Created descriptor set layout.

◆ pushConstantUintFieldOffsets

std::unordered_map<std::string, size_t> ne::DescriptorSetLayoutGenerator::Generated::pushConstantUintFieldOffsets

Stores pairs of "name of field defined in GLSL push constants" (all with uint type) and "offset from the beginning of the push constants struct (in `uint`s not bytes)".

Remarks
May be empty if not used.
If a non uint fields is found an error is returned instead.

◆ resourceBindings

std::unordered_map<std::string, uint32_t, StdStringHash, std::equal_to<> > ne::DescriptorSetLayoutGenerator::Generated::resourceBindings

Map of pairs "resource name" (from GLSL code) - "layout binding index".

Remarks
Binding index in the map reference descriptor sets from vDescriptorSets.
Generally used to bind/update data of some GLSL resource to a specific descriptor in a descriptor set.

◆ vDescriptorSets

std::array<VkDescriptorSet, FrameResourceManager::getFrameResourceCount()> ne::DescriptorSetLayoutGenerator::Generated::vDescriptorSets

Created descriptor set per each frame resource.


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