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

@@ -283,6 +283,8 @@ namespace Nz
// Require GLSL.std.450
case ShaderAst::IntrinsicType::CrossProduct:
case ShaderAst::IntrinsicType::Length:
case ShaderAst::IntrinsicType::Max:
case ShaderAst::IntrinsicType::Min:
extInsts.emplace("GLSL.std.450");
break;