Shader: Fix conditional statement handling in partial compilation mode

This commit is contained in:
SirLynix
2022-05-05 20:19:27 +02:00
parent e62969999a
commit 973b589b08
3 changed files with 97 additions and 30 deletions

View File

@@ -166,6 +166,7 @@ namespace Nz::ShaderAst
ExpressionValue<StructLayout> layout;
std::string name;
std::vector<StructMember> members;
bool isConditional;
};
inline bool IsAliasType(const ExpressionType& type);

View File

@@ -218,6 +218,7 @@ namespace Nz::ShaderAst
{
std::size_t index;
IdentifierCategory category;
bool isConditional = false;
};
struct Identifier