Diligent Engine  v.2.4.g
Namespaces | Macros | Functions
PipelineResourceSignatureBase.cpp File Reference
#include "PipelineResourceSignatureBase.hpp"
#include <unordered_map>
#include "HashUtils.hpp"
#include "StringTools.hpp"

Namespaces

 Diligent
 The library uses Direct3D-style math:
 

Macros

#define LOG_PRS_ERROR_AND_THROW(...)   LOG_ERROR_AND_THROW("Description of a pipeline resource signature '", (Desc.Name ? Desc.Name : ""), "' is invalid: ", ##__VA_ARGS__)
 

Functions

void Diligent::ValidatePipelineResourceSignatureDesc (const PipelineResourceSignatureDesc &Desc, const DeviceFeatures &Features) noexcept(false)
 Validates pipeline resource signature description and throws an exception in case of an error. More...
 
Uint32 Diligent::FindImmutableSampler (const ImmutableSamplerDesc *ImtblSamplers, Uint32 NumImtblSamplers, SHADER_TYPE ShaderStages, const char *ResourceName, const char *SamplerSuffix)
 Finds an immutable sampler for the resource name 'ResourceName' that is defined in shader stages 'ShaderStages'. If 'SamplerSuffix' is not null, it will be appended to the 'ResourceName'. Returns an index of the sampler in ImtblSamplers array, or InvalidImmutableSamplerIndex if there is no suitable sampler. More...
 
bool Diligent::PipelineResourcesCompatible (const PipelineResourceDesc &lhs, const PipelineResourceDesc &rhs)
 Returns true if two pipeline resources are compatible. More...
 
bool Diligent::PipelineResourceSignaturesCompatible (const PipelineResourceSignatureDesc &Desc0, const PipelineResourceSignatureDesc &Desc1) noexcept
 Returns true if two pipeline resource signature descriptions are compatible, and false otherwise. More...
 
size_t Diligent::CalculatePipelineResourceSignatureDescHash (const PipelineResourceSignatureDesc &Desc) noexcept
 Calculates hash of the pipeline resource signature description. More...
 

Macro Definition Documentation

◆ LOG_PRS_ERROR_AND_THROW

#define LOG_PRS_ERROR_AND_THROW (   ...)    LOG_ERROR_AND_THROW("Description of a pipeline resource signature '", (Desc.Name ? Desc.Name : ""), "' is invalid: ", ##__VA_ARGS__)