Diligent Engine  v.2.4.g
Namespaces | Macros | Functions
D3DCommonTypeConversions.cpp File Reference
#include "ShaderResources.hpp"
#include "D3DCommonTypeConversions.hpp"
#include <d3dcommon.h>

Namespaces

 Diligent
 The library uses Direct3D-style math:
 

Macros

#define LOG_RESOURCE_MERGE_ERROR_AND_THROW(PropertyName)
 

Functions

RESOURCE_DIMENSION Diligent::D3DSrvDimensionToResourceDimension (D3D_SRV_DIMENSION SrvDim)
 
void Diligent::GetShaderResourceTypeAndFlags (const D3DShaderResourceAttribs &Attribs, SHADER_RESOURCE_TYPE &OutType, PIPELINE_RESOURCE_FLAGS &OutFlags)
 
void Diligent::VerifyD3DResourceMerge (const PipelineStateDesc &PSODesc, const D3DShaderResourceAttribs &ExistingRes, const D3DShaderResourceAttribs &NewResAttribs) noexcept(false)
 Verifies that two pipeline resources are compatible and throws an exception in case of an error. More...
 

Macro Definition Documentation

◆ LOG_RESOURCE_MERGE_ERROR_AND_THROW

#define LOG_RESOURCE_MERGE_ERROR_AND_THROW (   PropertyName)
Value:
LOG_ERROR_AND_THROW("Shader variable '", NewResAttribs.Name, \
"' is shared between multiple shaders in pipeline '", (PSODesc.Name ? PSODesc.Name : ""), \
"', but its " PropertyName " varies. A variable shared between multiple shaders " \
"must be defined identically in all shaders. Either use separate variables for " \
"different shader stages, change resource name or make sure that " PropertyName " is consistent.");
LOG_ERROR_AND_THROW
#define LOG_ERROR_AND_THROW(...)
Definition: Errors.hpp:101