From 51ced5a191078ce4ef08d57e343e91db007f556f Mon Sep 17 00:00:00 2001 From: chai Date: Wed, 27 Oct 2021 19:30:06 +0800 Subject: *misc --- Runtime/Graphics/ShaderCompiler.h | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 Runtime/Graphics/ShaderCompiler.h (limited to 'Runtime/Graphics/ShaderCompiler.h') diff --git a/Runtime/Graphics/ShaderCompiler.h b/Runtime/Graphics/ShaderCompiler.h new file mode 100644 index 0000000..2917cf4 --- /dev/null +++ b/Runtime/Graphics/ShaderCompiler.h @@ -0,0 +1,33 @@ +#pragma once + +#include +#include "Runtime/Threading/Mutex.h" +#include "Runtime/Threading/Job.h" + +// ±ąŅėGLSL(GameLab Shading Language) + +// in: .glsl path +// out: vsh & fsh +class CompileGLSLJob : public Job +{ + +}; + +// in: glsl shader +// out: vsh & fsh +class CompileGLSLShaderJob : public Job +{ + +}; + +enum EGLSLCompileErrorCode +{ + Success = 0, +}; + +class GLSLCompiler +{ +public: + static int Compile(std::string& src, std::string& vsh, std::string& fsh); + +}; -- cgit v1.1-26-g67d0