diff options
author | chai <chaifix@163.com> | 2021-10-31 17:29:32 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-10-31 17:29:32 +0800 |
commit | 98d05c5030ba1c35ddfe402790702b3f44c63134 (patch) | |
tree | d251ae9e96a46947bc4fa65817f2ebfa4b07087a /Runtime/Graphics/ShaderCompiler.cpp | |
parent | 4b24de9ef863f54eb09a5fa1f18e2905cedcc439 (diff) |
- Runtime Proj
+ Runner Proj
Diffstat (limited to 'Runtime/Graphics/ShaderCompiler.cpp')
-rw-r--r-- | Runtime/Graphics/ShaderCompiler.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Runtime/Graphics/ShaderCompiler.cpp b/Runtime/Graphics/ShaderCompiler.cpp index ba69313..809c375 100644 --- a/Runtime/Graphics/ShaderCompiler.cpp +++ b/Runtime/Graphics/ShaderCompiler.cpp @@ -7,11 +7,12 @@ const char* VSH_END = "VSH_END"; const char* FSH_BEGIN = "FSH_BEGIN";
const char* FSH_END = "FSH_END";
-// GLSL分为三部分
+// GLSL分为四部分
+// * CMD_BEGIN 和 CMD_END 之间的命令
// * VERTEX_SHADER_BEGIN 和 VERTEX_SHADER_END之间的顶点着色器
// * FRAGMENT_SHADER_BEGIN 和 FRAGMENT_SHADER_END之间的片段着色器
// * 两者之外的公共部分
-void GLSLCompiler::Compile(std::string& src, std::string& vsh, std::string& fsh)/*throw GLSLCompileException*/
+void GLSLCompiler::Compile(std::string& src, std::string& vsh, std::string& fsh, RenderCommandGroup& cmd)/*throw GLSLCompileException*/
{
int vsh_begin = src.find(VSH_BEGIN);
if (vsh_begin == string::npos)
|