X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fglsl%2Foptimize.h;h=ed9f91345f71b405209e3b6a32f7adec0d5ebeb3;hb=3c2397dbb6e45fe72214f71048c4edfe4f11ac73;hp=ea61b671d2e1ea2a68b10c4b4682e8cb6a560260;hpb=72a02f2f3f1c454aa670b256262d7bc0541222e3;p=libs%2Fgl.git diff --git a/source/glsl/optimize.h b/source/glsl/optimize.h index ea61b671..ed9f9134 100644 --- a/source/glsl/optimize.h +++ b/source/glsl/optimize.h @@ -175,13 +175,14 @@ public: bool apply(Stage &s) { s.content.visit(*this); return r_any_folded; } private: - static BasicTypeDeclaration::Kind get_value_kind(const Variant &); template static T evaluate_logical(char, T, T); template static bool evaluate_relation(const char *, T, T); template static T evaluate_arithmetic(char, T, T); + template + static T evaluate_int_special_op(char, T, T); void set_result(const Variant &, bool = false); virtual void visit(RefPtr &);