X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fglsl%2Fgenerate.h;h=d828daa5172716cb6c173e129cd5c8d6126fb452;hp=eb7d488ae6071faa619f3e374c61084686e028b9;hb=76cc18518fc8b0b4fa11fda153e7d9b3899ed112;hpb=c1b42fd479c5ca4cbab258ee0fa5c7cac319f928 diff --git a/source/glsl/generate.h b/source/glsl/generate.h index eb7d488a..d828daa5 100644 --- a/source/glsl/generate.h +++ b/source/glsl/generate.h @@ -16,6 +16,7 @@ class ConstantIdAssigner: private TraversingVisitor { private: std::set used_ids; + std::map existing_constants; std::vector auto_constants; public: @@ -36,20 +37,18 @@ Unresolved variables are looked up in the previous stage's out variables. */ class InterfaceGenerator: private TraversingVisitor { private: - Stage *stage; + Stage *stage = 0; std::string in_prefix; std::string out_prefix; - bool function_scope; - bool copy_block; + bool function_scope = false; + bool copy_block = false; std::vector declared_inputs; - Block *iface_target_block; + Block *iface_target_block = 0; NodeList::iterator iface_insert_point; NodeList::iterator assignment_insert_point; std::set nodes_to_remove; public: - InterfaceGenerator(); - void apply(Stage &); private: