summaryrefslogtreecommitdiff
path: root/Runtime/Graphics/ShaderCompiler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Runtime/Graphics/ShaderCompiler.cpp')
-rw-r--r--Runtime/Graphics/ShaderCompiler.cpp5
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)