X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fprogrambuilder.h;h=82a954b58b481faf4809cac719baa3aa1c48079a;hb=131bec9b254f5ba50dcaf7e6192baab9e9ccba6f;hp=30f1ef15738b3ab969c288442fe354c0ae7b7843;hpb=9034e81679eeeaa3d1d5d643d3f924d9edb45a68;p=libs%2Fgl.git diff --git a/source/programbuilder.h b/source/programbuilder.h index 30f1ef15..82a954b5 100644 --- a/source/programbuilder.h +++ b/source/programbuilder.h @@ -64,6 +64,8 @@ private: std::string resolved_space; std::list referenced_vars; std::list referenced_by; + bool inlined; + bool inline_parens; ShaderVariable(const std::string &); @@ -72,6 +74,7 @@ private: void resolve_space(const std::string &); void add_reference(ShaderVariable &); void update_reference(ShaderVariable &, ShaderVariable &); + void check_inline(); bool is_referenced_from(VariableScope) const; std::string get_expression() const; }; @@ -85,12 +88,14 @@ private: StandardFeatures features; std::string feature_flags; + bool optimize; static const StandardVariable standard_variables[]; public: ProgramBuilder(const StandardFeatures &); + void set_optimize(bool); Program *create_program() const; void add_shaders(Program &) const; private: