Skip to content

Commit ed4c6fc

Browse files
authored
Add warning when shader macro not found
Shader gen material macros is ignored if m_pShaderCommonGlobalFlag has 64 values and new values is skipped. Issue reproduces when you create new shaders and introduce new ShaderGen flags.
1 parent d21172c commit ed4c6fc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

dev/Code/CryEngine/RenderDll/Common/Shaders/ShaderParse.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -737,6 +737,7 @@ uint64 CShaderMan::mfGetShaderGlobalMaskGenFromString(const char* szShaderGen)
737737
{
738738
nMaskGen |= pIter->second;
739739
}
740+
AZ_Warning("Shaders", pIter != pEnd, "Failed to find property \"%s\". Shader macro is ignored.", pCurrFlag);
740741
}
741742

742743
return nMaskGen;

0 commit comments

Comments
 (0)