X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fglsl%2Fcompiler.h;fp=source%2Fglsl%2Fcompiler.h;h=69ac7427d80fc97188fa2bcbb0c2c600ef6cf67a;hb=6288c42adde9ee7d39a47de51fa2856cf965dccc;hp=4eaff213076ea07131528b03810b1c51b961369e;hpb=7f29c6d2a4eee36538d7ccf24980e749592e2444;p=libs%2Fgl.git diff --git a/source/glsl/compiler.h b/source/glsl/compiler.h index 4eaff213..69ac7427 100644 --- a/source/glsl/compiler.h +++ b/source/glsl/compiler.h @@ -24,6 +24,8 @@ private: Features features; Module *module; std::vector imported_names; + bool specialized; + std::map spec_values; public: Compiler(); @@ -36,6 +38,7 @@ public: void set_source(const std::string &, const std::string & = ""); void load_source(IO::Base &, DataFile::Collection * = 0, const std::string & = ""); void load_source(IO::Base &, const std::string &); + void specialize(const std::map &); void compile(Mode); std::string get_combined_glsl() const;