X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fglsl%2Fcompiler.h;h=4eaff213076ea07131528b03810b1c51b961369e;hb=bd8816692056230c36504dcccd76c6946dff47b1;hp=0ecec70d52e38369532be5902634c4bcf2e93463;hpb=dccad64b2ec82249d850b9745614042171499972;p=libs%2Fgl.git diff --git a/source/glsl/compiler.h b/source/glsl/compiler.h index 0ecec70d..4eaff213 100644 --- a/source/glsl/compiler.h +++ b/source/glsl/compiler.h @@ -2,6 +2,8 @@ #define MSP_GL_SL_COMPILER_H_ #include +#include +#include #include "parser.h" #include "syntax.h" @@ -19,11 +21,13 @@ public: }; private: + Features features; Module *module; std::vector imported_names; public: Compiler(); + Compiler(const Features &); ~Compiler(); private: @@ -40,8 +44,10 @@ public: const std::map &get_vertex_attributes() const; const std::map &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 &);