X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fglsl%2Fresolve.h;h=d592e4efd5a60ddaea72b0533db48474abfe8df8;hb=08d3b5a55fad7439b47fc93d8ba604cbeb7e19ca;hp=a11b849e251acafd887061521ea9e51bf0369141;hpb=6cb04ca058e463b7d76eba684be89dfc9e77ab29;p=libs%2Fgl.git diff --git a/source/glsl/resolve.h b/source/glsl/resolve.h index a11b849e..d592e4ef 100644 --- a/source/glsl/resolve.h +++ b/source/glsl/resolve.h @@ -31,6 +31,7 @@ private: Stage *stage = 0; std::map alias_map; std::map, TypeDeclaration *> array_types; + std::map, ImageTypeDeclaration *> image_types; NodeList::iterator type_insert_point; NodeList::iterator block_member_type_ins_pt; VariableDeclaration *iface_block = 0; @@ -41,7 +42,8 @@ public: private: TypeDeclaration *get_or_create_array_type(TypeDeclaration &); - void resolve_type(TypeDeclaration *&, const std::string &, bool); + TypeDeclaration *get_or_create_image_type(ImageTypeDeclaration &, const std::string &); + void resolve_type(TypeDeclaration *&, const std::string &, bool, const Layout * = 0); virtual void visit(Block &); virtual void visit(BasicTypeDeclaration &); virtual void visit(ImageTypeDeclaration &);