X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fglsl%2Fgenerate.h;h=eb7d488ae6071faa619f3e374c61084686e028b9;hb=69bf91a6b169934f2853538580f46ffa8bde1109;hp=b2cfadc428f6184e7e44b74c310e300e7cc122c4;hpb=d9d7ab44d5f88c4537906e77c49db06d6bdc099c;p=libs%2Fgl.git diff --git a/source/glsl/generate.h b/source/glsl/generate.h index b2cfadc4..eb7d488a 100644 --- a/source/glsl/generate.h +++ b/source/glsl/generate.h @@ -14,8 +14,12 @@ namespace SL { /** Assigns IDs to specialization constants with an automatic ID. */ class ConstantIdAssigner: private TraversingVisitor { +private: + std::set used_ids; + std::vector auto_constants; + public: - void apply(Stage &); + void apply(Module &, const Features &); private: virtual void visit(VariableDeclaration &);