Nameless Engine
Loading...
Searching...
No Matches
ne::RootSignatureGenerator::CollectedInfo Struct Reference

#include <RootSignatureGenerator.h>

Public Attributes

std::set< SamplerType > staticSamplers
 
std::vector< RootParametervRootParameters
 
std::unordered_map< std::string, std::pair< UINT, RootParameter > > rootParameterIndices
 
std::unordered_map< std::string, size_t > rootConstantOffsets
 

Detailed Description

Contains collected root signature info.

Member Data Documentation

◆ rootConstantOffsets

std::unordered_map<std::string, size_t> ne::RootSignatureGenerator::CollectedInfo::rootConstantOffsets

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

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

◆ rootParameterIndices

std::unordered_map<std::string, std::pair<UINT, RootParameter> > ne::RootSignatureGenerator::CollectedInfo::rootParameterIndices

Stores pairs of shader resource name - root parameter index / root parameter, allows determining what resource is binded to what root parameter index (by using resource name taken from shader file).

◆ staticSamplers

std::set<SamplerType> ne::RootSignatureGenerator::CollectedInfo::staticSamplers

Static samplers of root signature.

◆ vRootParameters

std::vector<RootParameter> ne::RootSignatureGenerator::CollectedInfo::vRootParameters

Root parameters that were used in creation of the root signature.


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