Shader/ShaderLang: Add support for Unary operators

This commit is contained in:
Lynix
2021-05-16 23:07:25 +02:00
parent 1f05e950e8
commit 525f24af2e
30 changed files with 566 additions and 208 deletions

View File

@@ -29,7 +29,7 @@ namespace Nz::ShaderAst
enum class BinaryType
{
Add, //< +
Subtract, //< -
Subtract, //< -
Multiply, //< *
Divide, //< /
@@ -89,6 +89,13 @@ namespace Nz::ShaderAst
Third,
Fourth
};
enum class UnaryType
{
LogicalNot, //< !v
Minus, //< -v
Plus, //< +v
};
}
#endif // NAZARA_SHADER_ENUMS_HPP