Shader: Add module statement
This commit is contained in:
@@ -465,6 +465,8 @@ namespace Nz
|
||||
|
||||
if constexpr (std::is_same_v<T, ShaderAst::NoValue>)
|
||||
throw std::runtime_error("invalid type (value expected)");
|
||||
else if constexpr (std::is_same_v<T, std::string>)
|
||||
throw std::runtime_error("unexpected string litteral");
|
||||
else if constexpr (std::is_same_v<T, bool>)
|
||||
return ConstantBool{ arg };
|
||||
else if constexpr (std::is_same_v<T, float> || std::is_same_v<T, Int32> || std::is_same_v<T, UInt32>)
|
||||
|
||||
Reference in New Issue
Block a user