Shader: Add support for max/min intrinsic

This commit is contained in:
Jérôme Leclercq
2021-05-19 20:31:26 +02:00
parent 0339ea346f
commit a7235ab02d
7 changed files with 84 additions and 0 deletions

View File

@@ -22,6 +22,8 @@ namespace Nz::ShaderLang
std::unordered_map<std::string, ShaderAst::IntrinsicType> s_identifierToIntrinsic = {
{ "cross", ShaderAst::IntrinsicType::CrossProduct },
{ "dot", ShaderAst::IntrinsicType::DotProduct },
{ "max", ShaderAst::IntrinsicType::Max },
{ "min", ShaderAst::IntrinsicType::Min },
{ "length", ShaderAst::IntrinsicType::Length },
};