]> git.tdb.fi Git - libs/gl.git/blobdiff - source/glsl/output.cpp
Output the passthrough statement in both GLSL and debug modes
[libs/gl.git] / source / glsl / output.cpp
index c1da9feccb2bd3f8e6c835bf91d57a21ad7b9913..46314588858667c059a80c131bb6f527b3ba9bc6 100644 (file)
@@ -341,6 +341,18 @@ void Formatter::visit(Iteration &iter)
        }
 }
 
+void Formatter::visit(Passthrough &pass)
+{
+       append("passthrough");
+       if(pass.subscript)
+       {
+               append('[');
+               pass.subscript->visit(*this);
+               append(']');
+       }
+       append(';');
+}
+
 void Formatter::visit(Return &ret)
 {
        append("return");