Skip to content

Commit e149356

Browse files
committed
restore check in PRSBase
1 parent 9e813e4 commit e149356

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Graphics/GraphicsEngine/src/PipelineResourceSignatureBase.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,12 @@ void ValidatePipelineResourceSignatureDesc(const PipelineResourceSignatureDesc&
113113

114114
if ((Res.Flags & PIPELINE_RESOURCE_FLAG_INLINE_CONSTANTS) != 0)
115115
{
116+
if (Res.Flags != PIPELINE_RESOURCE_FLAG_INLINE_CONSTANTS)
117+
{
118+
LOG_PRS_ERROR_AND_THROW("Incorrect Desc.Resources[", i, "].Flags (", GetPipelineResourceFlagsString(Res.Flags),
119+
"). INLINE_CONSTANTS flag cannot be combined with other flags.");
120+
}
121+
116122
if (Res.ArraySize > 64)
117123
{
118124
LOG_PRS_ERROR_AND_THROW("Desc.Resources[", i, "].ArraySize (", Res.ArraySize,

0 commit comments

Comments
 (0)