]> git.tdb.fi Git - libs/gl.git/blobdiff - source/glsl/syntax.h
Add support for storage images in shaders
[libs/gl.git] / source / glsl / syntax.h
index b6a118d695218c0652624170d5107546857c6e8c..63e419212f6a68da5f37568d21681d23d8656929 100644 (file)
@@ -364,12 +364,14 @@ struct ImageTypeDeclaration: TypeDeclaration
 
        Dimensions dimensions = TWO;
        bool array = false;
-       bool sampled = true;
+       bool sampled = false;
        bool shadow = false;
        bool multisample = false;
        std::string base;
+       std::string format;
 
        TypeDeclaration *base_type = 0;
+       ImageTypeDeclaration *base_image = 0;
 
        virtual ImageTypeDeclaration *clone() const { return new ImageTypeDeclaration(*this); }
        virtual void visit(NodeVisitor &);