]> git.tdb.fi Git - libs/gl.git/blobdiff - source/glsl/syntax.h
Support compute shaders in the shader compiler
[libs/gl.git] / source / glsl / syntax.h
index b6a118d695218c0652624170d5107546857c6e8c..1f43eac303bf6db2e7e6c5f705ee77a40ee23d37 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 &);
@@ -488,7 +490,8 @@ struct Stage
                SHARED,
                VERTEX,
                GEOMETRY,
-               FRAGMENT
+               FRAGMENT,
+               COMPUTE
        };
 
        Type type;