]> git.tdb.fi Git - libs/gl.git/blobdiff - source/glsl/resolve.h
Remove unnecessary std:: qualifiers
[libs/gl.git] / source / glsl / resolve.h
index ca9c4f3231f8416c69b493ba1a0a218ea200e135..633ff11d27b4382e66ce6240847ac84907b54f5a 100644 (file)
@@ -79,7 +79,6 @@ private:
        void check_assignment_target(Statement *);
        virtual void visit(VariableReference &);
        virtual void visit(InterfaceBlockReference &);
-       void add_to_chain(Assignment::Target::ChainType, unsigned);
        virtual void visit(MemberAccess &);
        virtual void visit(Swizzle &);
        virtual void visit(BinaryExpression &);
@@ -105,6 +104,8 @@ private:
        {
                BasicTypeDeclaration *type;
                unsigned component_count;
+
+               ArgumentInfo(): type(0), component_count(0) { }
        };
 
        Stage *stage;
@@ -118,12 +119,8 @@ public:
        bool apply(Stage &);
 
 private:
-       static bool is_scalar(BasicTypeDeclaration &);
-       static bool is_vector_or_matrix(BasicTypeDeclaration &);
-       static BasicTypeDeclaration *get_element_type(BasicTypeDeclaration &);
-       static bool can_convert(BasicTypeDeclaration &, BasicTypeDeclaration &);
        static Compatibility get_compatibility(BasicTypeDeclaration &, BasicTypeDeclaration &);
-       BasicTypeDeclaration *find_type(BasicTypeDeclaration::Kind, unsigned);
+       BasicTypeDeclaration *find_type(BasicTypeDeclaration::Kind, unsigned, bool = true);
        BasicTypeDeclaration *find_type(BasicTypeDeclaration &, BasicTypeDeclaration::Kind, unsigned);
        void convert_to(RefPtr<Expression> &, BasicTypeDeclaration &);
        bool convert_to_element(RefPtr<Expression> &, BasicTypeDeclaration &);
@@ -159,6 +156,8 @@ public:
        bool apply(Stage &);
 
 private:
+       static bool can_convert_arguments(const FunctionCall &, const FunctionDeclaration &);
+
        virtual void visit(FunctionCall &);
        virtual void visit(FunctionDeclaration &);
 };