SHEMA YISROEEEEEEEEEEEEEEEEEEEEEEEEE

This commit is contained in:
malloc 2018-08-24 10:02:37 -05:00
parent 84b2e17844
commit 5cd9ab1a59
3 changed files with 18 additions and 0 deletions

View file

@ -10,6 +10,19 @@
namespace sosc {
namespace shdr {
struct ShaderLoadingException : public std::exception {
public:
ShaderLoadingException(const std::string& errorInfo) {
this->errorInfo = errorInfo;
}
const char* what() noexcept {
return this->errorInfo.c_str();
}
private:
std::string errorInfo;
};
struct ShaderCompilationException : public std::exception {
public:
ShaderCompilationException

View file

@ -1,2 +1,5 @@
#include "test.hpp"
void sosc::shdr::TestShader::PrepareLoad() {
}

View file

@ -11,6 +11,8 @@ public:
SCREEN_SIZE = 0,
GRAPHIC_SAMPLER
};
protected:
void PrepareLoad() override;
};
}}