]> git.tdb.fi Git - libs/gl.git/blobdiff - source/glsl/generate.h
Only generate or link interfaces in the correct scope
[libs/gl.git] / source / glsl / generate.h
index c54860fc8c09d7e4a97b93edf721dfcf30d2792a..72035b2c4869504199edda4df59e46958b41fed1 100644 (file)
@@ -84,6 +84,7 @@ private:
        Stage *stage;
        std::string in_prefix;
        std::string out_prefix;
+       bool function_scope;
        NodeList<Statement>::iterator iface_insert_point;
        NodeList<Statement>::iterator assignment_insert_point;
        std::set<Node *> nodes_to_remove;
@@ -101,6 +102,7 @@ private:
        ExpressionStatement &insert_assignment(const std::string &, Expression *);
        virtual void visit(VariableReference &);
        virtual void visit(VariableDeclaration &);
+       virtual void visit(FunctionDeclaration &);
        virtual void visit(Passthrough &);
 };