Nameless Engine
|
#include <RootSignatureGenerator.h>
Public Attributes | |
std::set< SamplerType > | staticSamplers |
std::vector< RootParameter > | vRootParameters |
std::unordered_map< std::string, std::pair< UINT, RootParameter > > | rootParameterIndices |
std::unordered_map< std::string, size_t > | rootConstantOffsets |
Contains collected root signature info.
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)".
uint
fields is found an error is returned instead. 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).
std::set<SamplerType> ne::RootSignatureGenerator::CollectedInfo::staticSamplers |
Static samplers of root signature.
std::vector<RootParameter> ne::RootSignatureGenerator::CollectedInfo::vRootParameters |
Root parameters that were used in creation of the root signature.