Shader: Fix unit tests
This commit is contained in:
@@ -39,6 +39,8 @@ namespace Nz::ShaderAst
|
||||
|
||||
bool HasValue() const;
|
||||
|
||||
void Reset();
|
||||
|
||||
ExpressionValue& operator=(const ExpressionValue&) = default;
|
||||
ExpressionValue& operator=(ExpressionValue&&) noexcept = default;
|
||||
|
||||
|
||||
@@ -67,6 +67,12 @@ namespace Nz::ShaderAst
|
||||
{
|
||||
return !std::holds_alternative<std::monostate>(m_value);
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
void ExpressionValue<T>::Reset()
|
||||
{
|
||||
m_value = {};
|
||||
}
|
||||
}
|
||||
|
||||
#include <Nazara/Shader/DebugOff.hpp>
|
||||
|
||||
Reference in New Issue
Block a user