X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fglsl%2Foptimize.h;fp=source%2Fglsl%2Foptimize.h;h=f6604743810ff1e275198ee554badcd53a75ffa2;hp=08ee082b99cd9e070dd5003de3cdc936ef21d396;hb=3e262649c1b98462bcaa2c66bc4fb4ee916dc9de;hpb=d5c38c181cac4da490c96123e5a88a8c06785e55 diff --git a/source/glsl/optimize.h b/source/glsl/optimize.h index 08ee082b..f6604743 100644 --- a/source/glsl/optimize.h +++ b/source/glsl/optimize.h @@ -39,10 +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 staging_block; std::string remap_prefix; - unsigned remap_names; + Pass pass; RefPtr r_inlined_statement; std::set dependencies; std::set referenced_names;