Shader: Fixes some errors and add unit tests

This commit is contained in:
SirLynix
2022-04-02 16:07:13 +02:00
parent 1c7a3a96e5
commit aa43db956c
5 changed files with 49 additions and 17 deletions

View File

@@ -40,7 +40,7 @@ namespace Nz::ShaderLang
{
public:
inline Error(SourceLocation sourceLocation, ErrorCategory errorCategory, ErrorType errorType) noexcept;
Error(const Error&) = delete;
Error(const Error&) = default;
Error(Error&&) noexcept = default;
~Error() = default;
@@ -51,7 +51,7 @@ namespace Nz::ShaderLang
const char* what() const noexcept override;
Error& operator=(const Error&) = delete;
Error& operator=(const Error&) = default;
Error& operator=(Error&&) noexcept = default;
protected: