From 92dd401d75e19281dc7a01492ab3c0996de330fc Mon Sep 17 00:00:00 2001 From: chai Date: Thu, 28 Oct 2021 11:09:59 +0800 Subject: *misc --- Runtime/Graphics/ShaderCompiler.h | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'Runtime/Graphics/ShaderCompiler.h') diff --git a/Runtime/Graphics/ShaderCompiler.h b/Runtime/Graphics/ShaderCompiler.h index 2917cf4..f4dc0a5 100644 --- a/Runtime/Graphics/ShaderCompiler.h +++ b/Runtime/Graphics/ShaderCompiler.h @@ -1,5 +1,6 @@ #pragma once +#include #include #include "Runtime/Threading/Mutex.h" #include "Runtime/Threading/Job.h" @@ -20,14 +21,19 @@ class CompileGLSLShaderJob : public Job }; -enum EGLSLCompileErrorCode +class GLSLCompileException : std::exception { - Success = 0, +public: + GLSLCompileException(const char* what) + : std::exception(what) + { + } + }; class GLSLCompiler { public: - static int Compile(std::string& src, std::string& vsh, std::string& fsh); + static void Compile(std::string& src, std::string& vsh, std::string& fsh)/*throw GLSLCompileException*/; }; -- cgit v1.1-26-g67d0