diff --git a/src/client/shaders/_shader.hpp b/src/client/shaders/_shader.hpp index 16bd87e..bc0cd10 100644 --- a/src/client/shaders/_shader.hpp +++ b/src/client/shaders/_shader.hpp @@ -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 diff --git a/src/client/shaders/test.cpp b/src/client/shaders/test.cpp index 386ffa4..18cc592 100644 --- a/src/client/shaders/test.cpp +++ b/src/client/shaders/test.cpp @@ -1,2 +1,5 @@ #include "test.hpp" +void sosc::shdr::TestShader::PrepareLoad() { + +} \ No newline at end of file diff --git a/src/client/shaders/test.hpp b/src/client/shaders/test.hpp index 47ca8ea..df1deea 100644 --- a/src/client/shaders/test.hpp +++ b/src/client/shaders/test.hpp @@ -11,6 +11,8 @@ public: SCREEN_SIZE = 0, GRAPHIC_SAMPLER }; +protected: + void PrepareLoad() override; }; }}