X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fglsl%2Foptimize.h;h=f6604743810ff1e275198ee554badcd53a75ffa2;hb=3e262649c1b98462bcaa2c66bc4fb4ee916dc9de;hp=bffc5a036197cc7f3a46e829018a38d98dac7495;hpb=6592dca643d9ac5b99d6a43cae30554ac1e4df62;p=libs%2Fgl.git diff --git a/source/glsl/optimize.h b/source/glsl/optimize.h index bffc5a03..f6604743 100644 --- a/source/glsl/optimize.h +++ b/source/glsl/optimize.h @@ -39,11 +39,18 @@ dependencies of the inlined statements to appear before the target function. */ class InlineContentInjector: private TraversingVisitor { private: + enum Pass + { + DEPENDS, + REFERENCED, + INLINE, + RENAME + }; + FunctionDeclaration *source_func; - Block *target_block; - std::map variable_map; + Block staging_block; std::string remap_prefix; - unsigned remap_names; + Pass pass; RefPtr r_inlined_statement; std::set dependencies; std::set referenced_names;