SHEMA YISROEEEEEEEEEEEEEEEEEEEEEEEEE
This commit is contained in:
parent
84b2e17844
commit
5cd9ab1a59
3 changed files with 18 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -1,2 +1,5 @@
|
|||
#include "test.hpp"
|
||||
|
||||
void sosc::shdr::TestShader::PrepareLoad() {
|
||||
|
||||
}
|
|
@ -11,6 +11,8 @@ public:
|
|||
SCREEN_SIZE = 0,
|
||||
GRAPHIC_SAMPLER
|
||||
};
|
||||
protected:
|
||||
void PrepareLoad() override;
|
||||
};
|
||||
}}
|
||||
|
||||
|
|
Loading…
Reference in a new issue