X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Fglsl%2Fresolve.h;h=d592e4efd5a60ddaea72b0533db48474abfe8df8;hb=2b1dc627491c987b0459226dcb8ac6aadd7ee4d3;hp=a11b849e251acafd887061521ea9e51bf0369141;hpb=c585c065b7831eb6ae05e48edc36953d2534db2b;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 &);