]> git.tdb.fi Git - libs/gl.git/blobdiff - source/glsl/compiler.h
Improve support for interface blocks
[libs/gl.git] / source / glsl / compiler.h
index 6564d50ae42d1213eb6f0b90582973a3efe4d003..4eaff213076ea07131528b03810b1c51b961369e 100644 (file)
@@ -21,11 +21,13 @@ public:
        };
 
 private:
+       Features features;
        Module *module;
        std::vector<std::string> imported_names;
 
 public:
        Compiler();
+       Compiler(const Features &);
        ~Compiler();
 
 private:
@@ -42,8 +44,10 @@ public:
        const std::map<std::string, unsigned> &get_vertex_attributes() const;
        const std::map<std::string, unsigned> &get_fragment_outputs() const;
        const SourceMap &get_source_map() const;
-private:
 
+       std::string get_stage_debug(Stage::Type) const;
+
+private:
        void append_module(Module &, DataFile::Collection *);
        void append_stage(Stage &);
        void import(DataFile::Collection *, const std::string &);