]> git.tdb.fi Git - libs/gl.git/blobdiff - source/glsl/parser.h
Check the flat qualifier from the correct member
[libs/gl.git] / source / glsl / parser.h
index a935356ecd1339e68e6bb82f2752a5d47e6a25fb..51616378c29c947653496ca71be80640081e55f4 100644 (file)
@@ -30,6 +30,7 @@ private:
        std::set<std::string> global_types;
        std::set<std::string> stage_types;
        std::vector<std::string> errors;
+       RefPtr<Statement> next_global_declaration;
 
 public:
        Parser(ModuleCache *);
@@ -79,6 +80,7 @@ private:
        RefPtr<BinaryExpression> parse_binary(const RefPtr<Expression> &, const Operator &);
        RefPtr<TernaryExpression> parse_ternary(const RefPtr<Expression> &, const Operator &);
        RefPtr<FunctionCall> parse_function_call(const VariableReference &);
+       void add_type(TypeDeclaration &);
        RefPtr<TypeDeclaration> parse_type_declaration();
        RefPtr<BasicTypeDeclaration> parse_basic_type_declaration();
        RefPtr<ImageTypeDeclaration> parse_image_type_declaration();
@@ -86,7 +88,7 @@ private:
        RefPtr<VariableDeclaration> parse_variable_declaration();
        RefPtr<VariableDeclaration> parse_variable_declaration_with_layout();
        RefPtr<FunctionDeclaration> parse_function_declaration();
-       RefPtr<InterfaceBlock> parse_interface_block();
+       RefPtr<StructDeclaration> parse_interface_block();
        RefPtr<Conditional> parse_conditional();
        RefPtr<Iteration> parse_for();
        RefPtr<Iteration> parse_while();