diff options
| author | chai <chaifix@163.com> | 2021-10-27 19:30:06 +0800 | 
|---|---|---|
| committer | chai <chaifix@163.com> | 2021-10-27 19:30:06 +0800 | 
| commit | 51ced5a191078ce4ef08d57e343e91db007f556f (patch) | |
| tree | 72dce341b2019e5b14c789a9edfb47d5b31900a6 /Runtime/Graphics/ShaderCompiler.h | |
| parent | e6a15decac22912900d2cbd2e5525229b92bb55a (diff) | |
*misc
Diffstat (limited to 'Runtime/Graphics/ShaderCompiler.h')
| -rw-r--r-- | Runtime/Graphics/ShaderCompiler.h | 33 | 
1 files changed, 33 insertions, 0 deletions
| 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 <string>
 +#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);
 +
 +};
 | 
