]> git.tdb.fi Git - libs/gl.git/blobdiff - source/glsl/resolve.h
Resolve function calls where argument types need to be converted
[libs/gl.git] / source / glsl / resolve.h
index 9e1d4f51c8dd8a6f75f3bd601a45532bdf439917..69c877fc6e542e24a5fd9edaf382662e2a83243d 100644 (file)
@@ -119,10 +119,6 @@ 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 &, BasicTypeDeclaration::Kind, unsigned);
@@ -160,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 &);
 };